Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IToolbarRWCButtonControlConfig

Configuration object for defining new toolbar custom control

Hierarchy

Index

Properties

class

class: string
property

{string} class classes to bind to for the css style.

Optional disable

disable: function

Optional - override method to disable the toolbar control. This method gets called when a toolbar containing the control gets disabled during navigation. If the control needs to do additional sync/async taks (e.x checking on user permission) before disabling, use this to override the default behavior.

returns

Type declaration

    • (): void
    • Returns void

Optional enable

enable: function

Optional - override method to enable the toolbar control. This method gets called when a toolbar containing the control gets enabled during navigation. If the control needs to do additional sync/async taks (e.x checking on user permission) before enabling, use this to override the default behavior.

returns

Type declaration

    • (): void
    • Returns void

Optional enableOnCreation

enableOnCreation: boolean
property

{boolean} enableOnCreation Optional - whether to enable the toolbar control on creation. Set to true by default. If you don't want the control to be enabled on creation, set this to false.

icon

icon: string
property

{string} icon Icon name for an rwc icon to display on button

id

id: string
property

{string} id unique toolbar control ID.

onClick

onClick: function
property

{() => any} onClick delegate for the on click event

Type declaration

    • (): any
    • Returns any

Optional permissionCheck

permissionCheck: IPermissionCheckRequest
property

{IPermissionCheckRequest} permissionCheck Optional - permission check object to be used to check on permission before creating the toolbar control.

theme

theme: string
property

{string} theme string for RWA button theme

title

title: string
property

{string} title title/name for the toolbar control. Used for hover text.

type

property

{toolbarControlType} type the toolbar control's type.

wrapperClass

wrapperClass: string
property

{string} wrapperClass string for div wrapping the button. Empty by default