Runtime.Widget.Button

Component for working with buttons

Usage examples:

<class name="App.Example">

<use name="Runtime.Widget.Button" component="true" />

<template>
    <Button @event:click="this.onClick()">Click</Button>
</template>

<script>
void onClick()
{
    rtl::print("Click");
}
</script>

</class>

You can add a class to the button to change its properties:

<Button class="button--primary">Click</Button>

Button properties:

  • button--small - Small button
  • button--large - Large button
  • button--primary - Primary button
  • button--secondary - Secondary button
  • button--outline - Button without background, border only
  • button--danger - Danger button
  • button--success - Success button
  • button--info - Informational button
  • button--warning - Warning button
  • button--stretch - Stretch the button to the full width
\n\n\n```\n\nYou can add a class to the button to change its properties:\n```\n\n```\n\nButton properties:\n- button--small - Small button\n- button--large - Large button\n- button--primary - Primary button\n- button--secondary - Secondary button\n- button--outline - Button without background, border only\n- button--danger - Danger button\n- button--success - Success button\n- button--info - Informational button\n- button--warning - Warning button\n- button--stretch - Stretch the button to the full width","menu":[{"name":"about","title":"Runtime.Widget","description":"","menu_title":"","href":"widget/about","items":[]},{"name":"styles","title":"Website Styles","description":"","menu_title":"","href":"widget/styles","items":[]},{"name":"theme_dark","title":"Dark Theme","description":"","menu_title":"","href":"widget/theme_dark","items":[]},{"name":"basic","title":"Basic Widgets","description":"","menu_title":"","href":"widget/basic","items":[{"name":"button","title":"Runtime.Widget.Button","description":"","menu_title":"Button","href":"widget/basic/button","items":[]},{"name":"image","title":"Runtime.Widget.Image","description":"","menu_title":"Image","href":"widget/basic/image","items":[]},{"name":"input","title":"Runtime.Widget.Input","description":"","menu_title":"Input","href":"widget/basic/input","items":[]},{"name":"select","title":"Runtime.Widget.Select","description":"","menu_title":"Select","href":"widget/basic/select","items":[]},{"name":"textarea","title":"Runtime.Widget.TextArea","description":"","menu_title":"TextArea","href":"widget/basic/textarea","items":[]},{"name":"texteditable","title":"Runtime.Widget.TextEditable","description":"","menu_title":"TextEditable","href":"widget/basic/texteditable","items":[]},{"name":"upload_file_button","title":"Runtime.Widget.UploadFileButton","description":"","menu_title":"UploadFileButton","href":"widget/basic/upload_file_button","items":[]}]}],"menu_title":"Widgets","__class_name__":"App.Components.Pages.Documentation.PageModel"}}},"environments":{"CLOUD_ENV":"prod","DEBUG":false,"LOCALE":"en_US","TZ":"+05:00","TZ_OFFSET":18000}}; document.addEventListener("DOMContentLoaded", function(){ Runtime.rtl.mount(app_data, document.querySelector(".root_container"), function (result){ window["app"] = result.get("app"); window["app_layout"] = result.get("layout"); }); });