ixfx
    Preparing search index...

    Function buttonCreate

    • Creates a BUTTON element, wrapping it via button and returning it.

      const b = buttonCreate(`Stop`, () => console.log(`Stop`));
      someParent.addNode(b.el);

      Parameters

      • title: string
      • OptionalonClick: () => void

      Returns {
          set disabled(value: boolean): void;
          get el(): HTMLButtonElement;
          get title(): null | string;
          set title(value: string): void;
          click(): void;
          dispose(deleteElement?: boolean): void;
          onClick(handler?: () => void): void;
      }

      • setdisabled(value:boolean):void

        Sets disabled state of button

      • getel():HTMLButtonElement

        Gets the button element

      • gettitle():null | string

        Gets text content of button

      • settitle(value:string):void

        Sets text content of button

      • click:function
        • Trigger onClick handler

          Returns void

      • dispose:function
        • Disposes the button. Removes event handler and optionally removes from document

          Parameters

          • deleteElement: boolean = false

          Returns void

      • onClick:function
        • Sets the click handler, overwriting existing.

          Parameters

          • Optionalhandler: () => void

          Returns void