Usage
Signature:
interface CProgressButtonElement
- Typescript Import Format
- //To typecheck the element APIs, import as below.
 import { CProgressButtonElement } from "oj-c/progress-button";
 //For the transpiled javascript to load the element's module, import as below
 import "oj-c/progress-button";
For additional information visit:
Note: Application logic should not interact with the component's properties or invoke its methods until the BusyContext indicates that the component is ready for interaction.
Slots
JET components that allow child content support slots. Please see the slots section of the JET component overview doc for more information on allowed slot content and slot types.
- 
    
    startIcon
- 
    
      The startIcon slot is the button's start icon. The oj-c-progress-button element accepts DOM nodes as children with the startIcon slot.
Attributes
- 
    
    chroming :"borderless"|"outlined"|"solid"|"callToAction"
- 
    
      Indicates in what states the button has variants in background and border.- Default Value:
- "outlined"
 
 Supported Values:Value Description borderlessBorderless buttons are a more prominent variation. Borderless buttons are useful for supplemental actions that require minimal emphasis. callToActionA Call To Action (CTA) button guides the user to take or complete the action that is the main goal of the page or page section. There should only be one CTA button on a page at any given time. outlinedOutlined buttons are salient, but lighter weight than solid buttons. Outlined buttons are useful for secondary actions. solidSolid buttons stand out, and direct the user's attention to the most important actions in the UI. NamesItem Name Property chromingProperty change event chromingChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-chroming-changed
- 
    
    disabled :boolean
- 
    
      Specifies that the button element should be disabled.- Default Value:
- false
 
 NamesItem Name Property disabledProperty change event disabledChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-disabled-changed
- 
    
    display :"all"|"icons"|"label"
- 
    
      Display just the label, the icons, or all. Label is used as tooltip and should be set in all cases.- Default Value:
- "all"
 
 Supported Values:Value Description allDisplay both the label and icons. iconsDisplay only the icons. labelDisplay only the text label. NamesItem Name Property displayProperty change event displayChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-display-changed
- 
    
    edge :"none"|"bottom"
- 
    
      Specifies whether the button is attached to an edge. For example setting edge='bottom' can be used to attach a button to the bottom of a card. The button is then stretched to 100% width, and borders adjusted.- Default Value:
- "none"
 
 Supported Values:Value Description bottomStretch the button to 100% width and adjust borders for usage at bottom of container. noneDisplay a default standalone button. NamesItem Name Property edgeProperty change event edgeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-edge-changed
- 
    
    is-loading :boolean
- 
    
      Specifies if progress should be shown.NamesItem Name Property isLoadingProperty change event isLoadingChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-is-loading-changed
- 
    
    label* :string
- 
    
      Text to show in the button or as tooltip for icon mode.NamesItem Name Property labelProperty change event labelChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-label*-changed
- 
    
    size :"sm"|"md"|"lg"
- 
    
      Size of button- Default Value:
- "md"
 
 Supported Values:Value Description lgDisplay a large button. mdDisplay a default size button. smDisplay a small button. NamesItem Name Property sizeProperty change event sizeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-size-changed
- 
    
    tooltip :string
- 
    
      Text to show in the tooltip. This overrides the default tooltip that renders the label when in icon mode.NamesItem Name Property tooltipProperty change event tooltipChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-tooltip-changed
- 
    
    width :(number|string)
- 
    
      Specifies that the button style widthNamesItem Name Property widthProperty change event widthChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-width-changed
Events
- 
        
    
    
      ojAction
- 
    
    
    Triggered when a button is clicked, whether by keyboard, mouse, or touch events. To meet accessibility requirements, the only supported way to react to the click of a button is to listen for this event.See Events and Listeners for additional information. 
Methods
- 
        
    
    
      blur : {void}
- 
    
    
    
    
    
    
    
    
    
    
    
     
  Returns:- Type
- void
 
- 
        
    
    
      click : {void}
- 
    
    
    
    
    
    
    
    
    
    
    
     
  Returns:- Type
- void
 
- 
        
    
    
      focus : {void}
- 
    
    
    
    
    
    
    
    
    
    
    
     
  Returns:- Type
- void
 
- 
        
    
    
      getProperty(property) : {any}
- 
    
    
    Retrieves the value of a property or a subproperty.Parameters:Name Type Description propertyThe property name to get. Supports dot notation for subproperty access. Returns:- Type
- any
 
- 
        
    
    
      setProperties(properties) : {void}
- 
    
    
    Performs a batch set of properties.Parameters:Name Type Description propertiesAn object containing the property and value pairs to set. Returns:- Type
- void
 
- 
        
    
    
      setProperty(property, value) : {void}
- 
    
    
    Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.Parameters:Name Type Description propertyThe property name to set. Supports dot notation for subproperty access. valueThe new value to set the property to. Returns:- Type
- void