Name | Type | Default |
delay
|
Number
|
50
|
Sets or gets the delay property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [delay]="100"> </jqxButton> `}) export class AppComponent {
|
disabled
|
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [disabled]="true"> </jqxButton> `}) export class AppComponent {
|
height
|
Size
|
null
|
Sets or gets the height property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent {
|
imgSrc
|
String
|
''
|
Sets or gets the imgSrc property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [imgPosition]="'left'" [imgSrc]="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'" [imgHeight]="14" [imgWidth]="14"> </jqxButton> `}) export class AppComponent {
|
imgWidth
|
Size
|
16
|
Sets or gets the imgWidth property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [imgPosition]="left" [imgSrc]="https://jqwidgets.com/jquery-widgets-demo/images/andrew.png" [imgHeight]="14" [imgWidth]="14"> </jqxButton> `}) export class AppComponent {
|
imgHeight
|
Size
|
16
|
Sets or gets the imgHeight property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [imgPosition]="left" [imgSrc]="https://jqwidgets.com/jquery-widgets-demo/images/andrew.png" [imgHeight]="14" [imgWidth]="14"> </jqxButton> `}) export class AppComponent {
|
imgPosition
|
enum:ButtonPositions
|
'center'
|
enum ButtonPositions { left, center, right, top, bottom, topLeft, bottomLeft, topRight, bottomRight } Sets or gets the imgPosition property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [imgPosition]="'left'" [imgSrc]="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'" > </jqxButton> `}) export class AppComponent {
|
roundedCorners
|
enum:ButtonRoundedCorners
|
all
|
enum ButtonRoundedCorners { top, bottom, all, left, right, top-right, top-left, bottom-right, bottom-left } Sets or gets the roundedCorners property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [roundedCorners]="'top'"> </jqxButton> `}) export class AppComponent {
|
rtl
|
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [rtl]="true"> </jqxButton> `}) export class AppComponent {
|
textPosition
|
enum:ButtonPositions
|
''
|
enum ButtonPositions { left, center, right, top, bottom, topLeft, bottomLeft, topRight, bottomRight } Sets or gets the textPosition property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [textPosition]="'right'"> </jqxButton> `}) export class AppComponent {
|
textImageRelation
|
enum:ButtonTextImageRelation
|
'overlay'
|
enum ButtonTextImageRelation { imageBeforeText, imageAboveText, textAboveImage, textBeforeImage, overlay } Sets or gets the textImageRelation property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [imgPosition]="'left'" [imgSrc]="'https://jqwidgets.com/jquery-widgets-demo/images/andrew.png'" [textImageRelation]="'imageBeforeText'"> </jqxButton> `}) export class AppComponent {
|
theme
|
String
|
''
|
Sets or gets the theme property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [theme]="'energyblue'"> </jqxButton> `}) export class AppComponent {
|
template
|
enum:ButtonTemplate
|
'default'
|
enum ButtonTemplate { default, primary, success, warning, danger, inverse, info, link } Sets or gets the template property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [template]="'success'"> </jqxButton> `}) export class AppComponent {
|
toggled
|
Boolean
|
false
|
Sets or gets the toggled property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [toggled]="true"> </jqxButton> `}) export class AppComponent {
|
width
|
Size
|
null
|
Sets or gets the width property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="240px" [height]="40"> </jqxButton> `}) export class AppComponent {
|
value
|
String
|
''
|
Sets or gets the value property.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40" [value]="'Button'"> </jqxButton> `}) export class AppComponent {
|
|
click
|
Event
|
|
This event is triggered when the button is clicked.
Code examples
Bind to the click event of jqxButton.
import { Component } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton (onClick)="Click($event)" [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent {
|
|
Name | Return Type | Arguments |
check
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent;
|
destroy
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent;
|
focus
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent;
|
render
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent;
|
toggle
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent;
|
unCheck
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent;
|
val
|
String
|
value: String
|
import { Component, ViewChild, AfterViewInit } from "@angular/core"; @Component({ selector: "app-root", template: ` <jqxButton #myButton [width]="120" [height]="40"> </jqxButton> `}) export class AppComponent implements AfterViewInit { @ViewChild( 'myButton') myButton: jqxButtonComponent; ngAfterViewInit(): void { let value = this.myButton.val(New Text);
|