File

src/interfaces/IParamsEditorButton.ts

Index

Properties

Properties

class
class: string
Type : string
Optional

css class

handler
handler: function
Type : function

Click handler

icon
icon: string
Type : string
Optional

fa icon

label
label: string
Type : string

Label of button

when
when: function
Type : function
Optional

Whether it is available

import { RestAdminComponent } from '../component';

export interface IParamsEditorButton {
  /**
   * Label of button
   */
  label: string;

  /**
   * Click handler
   */
  handler: (self: RestAdminComponent) => void;

  /**
   * css class
   */
  class?: string;

  /**
   * fa icon
   */
  icon?: string;

  /**
   * Whether it is available
   */
  when?: (self: RestAdminComponent) => boolean;
}

results matching ""

    No results matching ""