Class TIWBSButton

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TIWBSButton = class(TIWBSCustomButton)

Description

Bootstrap Button
http://getbootstrap.com/css/#buttons
http://www.w3schools.com/bootstrap/bootstrap_buttons.asp

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;

Properties

Published property Anchor: boolean read FAnchor write FAnchor default False;
Public property AsyncClickProc: TIWBSAsyncClickProc read FAsyncClickProc write SetAsyncClickProc;
Published property ButtonType: TIWBSButtonType read FButtonType write FButtonType default iwbsbtButton;
Published property DataDismiss: TIWBSButtonDataDismiss read FDataDismiss write SetDataDismiss default bsbdNone;
Published property DataParent: IIWBSContainer read FDataParent write SetDataParent;
Published property DataTarget: IIWBSContainer read FDataTarget write SetDataTarget;
Published property HotKey: string read FHotkey write FHotKey;
Published property Href: string read FHref write SetHref stored IsHrefStored;
Published property Target: string read FTarget write SetTarget stored IsTargetStored;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 

Properties

Published property Anchor: boolean read FAnchor write FAnchor default False;

If true it will render an anchor if not a button. (This property should be droped, the condition should be autodetected)

Public property AsyncClickProc: TIWBSAsyncClickProc read FAsyncClickProc write SetAsyncClickProc;

Anonymous procedure that let you execute code when button is pressed without the need of declare an event.
Usefull when you create buttons at runtime

Published property ButtonType: TIWBSButtonType read FButtonType write FButtonType default iwbsbtButton;

Button type

Published property DataDismiss: TIWBSButtonDataDismiss read FDataDismiss write SetDataDismiss default bsbdNone;

Used when button in placed on a TIWBSModal or TIWBSAlert.
Let the button automatically close the dialog.

Published property DataParent: IIWBSContainer read FDataParent write SetDataParent;

Specifies the parent region off collapsable regions to autoclose other regions when one is toggled. See accordion example.
http://getbootstrap.com/javascript/#collapse-example-accordion
http://www.w3schools.com/bootstrap/bootstrap_collapse.asp

Published property DataTarget: IIWBSContainer read FDataTarget write SetDataTarget;

Specifies the target region for for toggle visiblity of TIWBSModal or TIWBSRegion.Collapse
http://www.w3schools.com/bootstrap/bootstrap_modal.asp
http://www.w3schools.com/bootstrap/bootstrap_collapse.asp

Published property HotKey: string read FHotkey write FHotKey;

acceskey tag atribute
http://www.w3schools.com/tags/att_global_accesskey.asp

Published property Href: string read FHref write SetHref stored IsHrefStored;

Destination address to jump when button is pressed.
Requires following property values: Anchor = true, DataTarget = nil, OnAsyncClic = nil.
http://www.w3schools.com/html/html_links.asp

Published property Target: string read FTarget write SetTarget stored IsTargetStored;

The target attribute specifies where to open the linked document. Apply when Href is used.
http://www.w3schools.com/html/html_links.asp


Generated by PasDoc 0.14.0.