Properties
AutoEvaluateText
: boolean
Inherited from BaseControl.AutoEvaluateText
Inherited from BaseControl.BackColor
var c = new pf.TextBox({BackColor: "gray"});
Inherited from BaseControl.Border
var c = new pf.Label({Border: "1px solid #aaa"});
Inherited from BaseControl.BorderRadius
var c = new pf.TextBox({BorderRadius: "3px"});
Inherited from BaseControl.BoxShadow
var c = new pf.TextBox({BoxShadow: "inset 0px 1px 0px #fff"});
BubbleChangeEvent
: boolean
= false
Inherited from DataControl.BubbleChangeEvent
var c = new pf.TextBox({BubbleChangeEvent: true});
Inherited from BaseControl.ClassName
var c = new pf.TextBox({ClassName: "navbar"});
Inherited from BaseControl.Comments
Control
: HTMLImageElement
Inherited from BaseControl.CssClear
var c = new pf.TextBox({CssClear: "both"});
Inherited from BaseControl.Cursor
var c = new pf.TextBox({Cursor: "pointer"});
DefaultValueProvider
: any
Inherited from DataControl.DefaultValueProvider
var c = new pf.TextBox({DefaultValueProvider: "return new Date();"});
Inherited from BaseControl.DetailContainer
var parentListbox = args.Sender.DetailContainer;
var rootForm = parentListbox.GetParentForm();
var value = rootForm.GetControl("Date").GetValue();
Inherited from BaseControl.DetailDataItem
Inherited from BaseControl.Enabled
var c = new pf.TextBox({Enabled: false});
Inherited from BaseControl.EnabledFormula
var formula = "form.GetControl(\"activeCheckbox\").GetValue()";
var c = new pf.Button({EnabledFormula: formula});
form.GetControl("checkbox").GetValue() && form.GetControl("Name") != ""
Inherited from DataControl.EqualityComparer
Inherited from BaseControl.ExtraStyle
var c = new pf.Label({ExtraStyle: "margin-left:20px;background-color:#ccc"});
Inherited from BaseControl.Float
var c = new pf.TextBox({Float: "right"});
Inherited from BaseControl.FontBold
var c = new pf.Label({FontBold: true});
Inherited from BaseControl.FontFamily
var c = new pf.Label({FontFamily: "Arial"});
FontItalics
: boolean
= false
Inherited from BaseControl.FontItalics
var c = new pf.Label({FontItalics: true});
Inherited from BaseControl.FontSize
var c = new pf.Label({FontSize: "20px"});
Inherited from BaseControl.ForeColor
var c = new pf.TextBox({ForeColor: "blue"});
Inherited from DataControl.FriendlyName
Inherited from BaseControl.Height
var c = new pf.ListBox({Height: "150px"});
IgnoreControlDependencies
: string
Inherited from BaseControl.IgnoreControlDependencies
Inherited from BaseControl.ManualDependencies
ManualEnabledState
: boolean
Inherited from BaseControl.ManualEnabledState
ManualVisibleState
: boolean
Inherited from BaseControl.ManualVisibleState
Inherited from BaseControl.Margin
var c = new pf.Label({Margin: "10px"});
Inherited from BaseControl.MaxHeight
var c = new pf.ListBox({MaxHeight: "300px"});
Inherited from BaseControl.MaxWidth
var c = new pf.TextBox({MaxWidth: "200px"});
Inherited from BaseControl.Metadata
Inherited from BaseControl.MetadataText
Inherited from BaseControl.MinHeight
var c = new pf.Button({MinHeight: "20px"});
Inherited from BaseControl.MinWidth
var c = new pf.Button({MinWidth: "40px"});
Inherited from BaseControl.Name
Inherited from BaseControl.Opacity
var c = new pf.Label({Text: "My Label", Opacity: "0.4"});
Inherited from BaseControl.Overlay
Inherited from BaseControl.OverlayOpacity
Inherited from BaseControl.Padding
var c = new pf.Label({HtmlElement: "div", Padding: "10px"});
Inherited from BaseControl.Parent
Inherited from BaseControl.ParentExtraStyle
ParentHorizontalAlignment
: string
Inherited from BaseControl.ParentHorizontalAlignment
ParentVerticalAlignment
: string
Inherited from BaseControl.ParentVerticalAlignment
Inherited from BaseControl.PrintExtraStyle
Inherited from BaseControl.Printable
Inherited from DataControl.Required
Serializable
: boolean
= true
Inherited from BaseControl.Serializable
Inherited from DataControl.StaticValue
SuspendChangeEvent
: boolean
= false
Inherited from DataControl.SuspendChangeEvent
Inherited from BaseControl.Tag
Inherited from DataControl.TargetDataItem
TargetDataItemFieldName
: string
Inherited from DataControl.TargetDataItemFieldName
Inherited from DataControl.TargetFieldName
var form = new pf.Form();
var container = new pf.SimpleContainer();
form.AddControl(container);
var textID = new pf.TextBox({TargetFieldName: "ID"});
var textName = new pf.TextBox({TargetFieldName: "Name"});
var textType = new pf.TextBox({TargetFieldName: "Type"});
container.AddControl(textID);
container.AddControl(textName);
container.AddControl(textType);
var value = form.GetValue();
Inherited from BaseControl.TextAlign
var c = new pf.TextBox({TextAlign: "center"});
var img = new pf.Image({ImageSrc: "/images/save.png", Title: "Save Form"});
Inherited from BaseControl.Tooltip
var c = new pf.TextBox({Tooltip: "The address of the customer"});
Inherited from BaseControl.TooltipConfiguration
UID
: string
= A new GUID is generated for each control
Inherited from BaseControl.UID
Inherited from DataControl.ValidationGroup
ValueConverter
: DynamicUserFunction
Inherited from DataControl.ValueConverter
Inherited from DataControl.ValueFormatter
ValueProviders
: IDataProvider[]
Inherited from DataControl.ValueProviders
VerticalAlignment
: string
Inherited from BaseControl.VerticalAlignment
Inherited from BaseControl.VisibilityFormula
var formula = "form.GetControl(\"activeCheckbox\").GetValue()";
var c = new pf.Button({VisibilityFormula: formula});
form.GetControl("checkbox").GetValue() && form.GetControl("Name") != ""
Inherited from BaseControl.Visible
var c = new pf.TextBox({Visible: false});
Inherited from BaseControl.Width
var c = new pf.TextBox({Width: "100px"});
AllDesignTimeSettings
: IDesignTimeSettings
TargetFieldNamePropertyName
: string
Inherited from DataControl.TargetFieldNamePropertyName
Methods
AddClass
(className: string[])
: void
Inherited from BaseControl.AddClass
AddClassName
(cls: string)
: void
Inherited from BaseControl.AddClassName
form.GetControl("Title").AddClassName("active");
AddManualDependency
(name: string, dep: IControlDependency)
: void
Inherited from BaseControl.AddManualDependency
ApplyDefaultValue
(value: any)
: void
Inherited from DataControl.ApplyDefaultValue
ClearAsReadonly
(exceptions: string[])
: void
Inherited from BaseControl.ClearAsReadonly
Inherited from BaseControl.Clone
EvaluateValue
(options: any, callback: any)
: void
Inherited from DataControl.EvaluateValue
GetActualHeight
()
: number
Inherited from BaseControl.GetActualHeight
Inherited from BaseControl.GetActualWidth
GetAllChildrenControls
()
:
Inherited from BaseControl.GetAllChildrenControls
var children = c.GetAllChildrenControls();
GetAsyncLoadedControls
()
:
Inherited from BaseControl.GetAsyncLoadedControls
Inherited from BaseControl.GetBackColor
Inherited from BaseControl.GetBorder
GetBorderRadius
()
: string
Inherited from BaseControl.GetBorderRadius
Inherited from BaseControl.GetBoxShadow
GetChild
(name: string)
: IControl
Inherited from BaseControl.GetChild
var control = container.GetChild("TitleTextBox");
Inherited from DataControl.GetChildren
Inherited from BaseControl.GetClassName
GetControl
(name: string)
: IControl
Inherited from BaseControl.GetControl
var control = container.GetControl("TitleTextBox");
GetControlAsync
(name: string, callback: , maxTime: number)
: void
Inherited from BaseControl.GetControlAsync
form.GetControlAsync("clientId", function(control) {
if (control) control.SetEnabled(false);
}, 2000);
GetControlById
(id: string)
: IControl
Inherited from BaseControl.GetControlById
var control = container.GetControlById("ID1");
GetControlByTargetFieldName
(name: string)
: IDataControl
Inherited from BaseControl.GetControlByTargetFieldName
var c = form.GetControlByTargetFieldName("CustomerType");
GetControlByTargetFieldNameAsync
(name: string, callback: , maxTime: number)
: void
Inherited from BaseControl.GetControlByTargetFieldNameAsync
GetControlsById
(uid: string)
:
Inherited from BaseControl.GetControlsById
var controls = container.GetControlsById("ID1");
Inherited from BaseControl.GetCssClear
Inherited from BaseControl.GetCursor
GetDependencies
(name: string)
: IControlDependency
Inherited from BaseControl.GetDependencies
Inherited from DataControl.GetDisplayValue
Inherited from BaseControl.GetExtraStyle
Inherited from BaseControl.GetFloat
Inherited from BaseControl.GetFontBold
Inherited from BaseControl.GetFontFamily
Inherited from BaseControl.GetFontItalic
Inherited from BaseControl.GetFontSize
Inherited from BaseControl.GetForeColor
Inherited from BaseControl.GetHeight
Inherited from BaseControl.GetMargin
Inherited from BaseControl.GetMaxHeight
Inherited from BaseControl.GetMaxWidth
Inherited from BaseControl.GetMinHeight
Inherited from BaseControl.GetMinWidth
(value: number, format: string, decimals: number, min: number, max: number)
: string
Inherited from DataControl.GetNumberFormattedValue
GetNumericValue
()
: number
Inherited from DataControl.GetNumericValue
var amount = form.GetControl("Amount").GetNumericValue() * 100;
Inherited from BaseControl.GetOffsetTop
Inherited from BaseControl.GetOpacity
Inherited from BaseControl.GetOverlay
GetOverlayOpacity
()
: string
Inherited from BaseControl.GetOverlayOpacity
Inherited from BaseControl.GetPadding
GetParentActualHeight
()
: number
Inherited from BaseControl.GetParentActualHeight
GetParentActualWidth
()
: number
Inherited from BaseControl.GetParentActualWidth
GetParentControl
(name: string)
: IControl
Inherited from BaseControl.GetParentControl
Inherited from BaseControl.GetParentForm
var parent = c.GetParentForm();
Inherited from BaseControl.GetParentFormOrSelf
var parent = c.GetParentFormOrSelf();
Inherited from BaseControl.GetPrintExtraStyle
Inherited from DataControl.GetPrintValue
Inherited from BaseControl.GetRootControl
Inherited from BaseControl.GetRootForm
Inherited from BaseControl.GetTextAlign
Inherited from BaseControl.GetTooltip
Inherited from BaseControl.GetTooltipConfiguration
Inherited from DataControl.GetValue
var active = form.GetControl("checkbox").GetValue();
var text = form.GetControl("textbox").GetValue();
var items = form.GetControl("listbox").GetValue();
GetValuePath
(path: string, sep: string)
: any
Inherited from DataControl.GetValuePath
var value = form.GetControl("Country");
var result = form.GetControl("Country").GetValuePath("Name");
var result = form.GetControl("Country").GetValuePath("ID");
var value = form.GetControl("Countries");
var result = form.GetControl("Counties").GetValuePath("Name", ", ");
var result = form.GetControl("Counties").GetValuePath("ID", ";");
GetVerticalAlignment
()
: string
Inherited from BaseControl.GetVerticalAlignment
Inherited from BaseControl.GetVisible
Inherited from BaseControl.GetWidth
HasChild
(c: BaseControl)
: boolean
Inherited from BaseControl.HasChild
HasClass
(className: string)
: boolean
Inherited from BaseControl.HasClass
Inherited from BaseControl.IsEnabled
Inherited from BaseControl.IsLoaded
Inherited from DataControl.IsRequired
Inherited from BaseControl.IsVisible
RemoveClass
(className: string[])
: void
Inherited from BaseControl.RemoveClass
RemoveClassName
(cls: string)
: void
Inherited from BaseControl.RemoveClassName
form.GetControl("Title").RemoveClassName("active");
Inherited from BaseControl.ScrollIntoView
SetAsReadonly
(exceptions: string[])
: void
Inherited from BaseControl.SetAsReadonly
SetBackColor
(color: string)
: void
Inherited from BaseControl.SetBackColor
form.GetControl("Name").SetBackColor("blue");
SetBorder
(border: string)
: void
Inherited from BaseControl.SetBorder
form.GetControl("Name").SetBorder("1px solid #aaa");
SetBorderRadius
(radius: string)
: void
Inherited from BaseControl.SetBorderRadius
form.GetControl("Name").SetBorderRadius("3px");
SetBoxShadow
(value: string)
: void
Inherited from BaseControl.SetBoxShadow
form.GetControl("Name").SetBoxShadow("inset 0px 1px 0px #fff");
SetClassName
(cls: string)
: void
Inherited from BaseControl.SetClassName
form.GetControl("Title").SetClassName("active");
SetControlValue
(value: any)
: boolean
SetCssClear
(clear: string)
: void
Inherited from BaseControl.SetCssClear
form.GetControl("Name").SetCssClear("both");
SetCursor
(cursor: string)
: void
Inherited from BaseControl.SetCursor
form.GetControl("Name").SetCursor("pointer");
SetEnabled
(enabled: any)
: void
Inherited from BaseControl.SetEnabled
form.GetControl("Title").SetEnabled(false);
SetEnabledRecursive
(enabled: any, exceptions: string[])
: void
Inherited from BaseControl.SetEnabledRecursive
Inherited from BaseControl.SetExtraStyle
form.GetControl("Name").SetExtraStyle("margin-top:10px;clear:both;");
SetFloat
(cssFloat: string)
: void
Inherited from BaseControl.SetFloat
form.GetControl("Name").SetFloat("right");
SetFontBold
(bold: boolean)
: void
Inherited from BaseControl.SetFontBold
form.GetControl("Name").SetFontBold(true);
SetFontFamily
(family: string)
: void
Inherited from BaseControl.SetFontFamily
form.GetControl("Name").SetFontFamily("Arial");
SetFontItalics
(italics: boolean)
: void
Inherited from BaseControl.SetFontItalics
form.GetControl("Name").SetFontItalics(true);
SetFontSize
(size: string)
: void
Inherited from BaseControl.SetFontSize
form.GetControl("Name").SetFontSize("14px");
SetForeColor
(color: string)
: void
Inherited from BaseControl.SetForeColor
form.GetControl("Name").SetForeColor("#c00");
SetHeight
(height: string)
: void
Inherited from BaseControl.SetHeight
form.GetControl("Name").SetHeight("20px");
SetImageSrc
(textExpression: any)
: void
form.GetControl("image1").SetImageSrc("/images/pin.png");
Inherited from BaseControl.SetLoaded
SetMargin
(margin: string)
: void
Inherited from BaseControl.SetMargin
form.GetControl("Name").SetMargin("10px 20px");
form.GetControl("Name").SetMargin("10px");
form.GetControl("Name").SetMargin("10px 20px 30px 40px");
SetMaxHeight
(height: string)
: void
Inherited from BaseControl.SetMaxHeight
form.GetControl("Name").SetMaxHeight("200px");
SetMaxWidth
(width: string)
: void
Inherited from BaseControl.SetMaxWidth
form.GetControl("Name").SetMaxWidth("200px");
SetMetadataText
(metadataText: string)
: void
Inherited from BaseControl.SetMetadataText
SetMinHeight
(height: string)
: void
Inherited from BaseControl.SetMinHeight
form.GetControl("Name").SetMinHeight("200px");
SetMinWidth
(width: string)
: void
Inherited from BaseControl.SetMinWidth
form.GetControl("Name").SetMinWidth("50px");
SetOpacity
(op: string)
: void
Inherited from BaseControl.SetOpacity
form.GetControl("Name").SetOpacity("0.6");
SetOverlay
(set: boolean)
: void
Inherited from BaseControl.SetOverlay
SetOverlayOpacity
(opacity: string)
: void
Inherited from BaseControl.SetOverlayOpacity
SetPadding
(padding: string)
: void
Inherited from BaseControl.SetPadding
form.GetControl("Name").SetPadding("10px 20px");
form.GetControl("Name").SetPadding("10px");
form.GetControl("Name").SetPadding("10px 20px 30px 40px");
Inherited from BaseControl.SetPrintExtraStyle
SetRequired
(required: any)
: void
Inherited from DataControl.SetRequired
SetTextAlign
(align: string)
: void
Inherited from BaseControl.SetTextAlign
form.GetControl("Name").SetTextAlign("center");
(tooltip: string, options: any)
: void
Inherited from BaseControl.SetTooltip
form.GetControl("Address").SetTooltip("This is the address field");
(value: ITooltipOptions)
: void
Inherited from BaseControl.SetTooltipConfiguration
SetValue
(value: any)
: void
Inherited from DataControl.SetValue
form.GetControl("CustomerCombo").SetValue({ID: "1", Name: "CustomerA"});
form.GetControl("checkbox").SetValue(true);
form.GetControl("label1").SetValue("My label text");
SetVerticalAlignment
(align: string)
: void
Inherited from BaseControl.SetVerticalAlignment
SetVisible
(visible: boolean)
: void
Inherited from BaseControl.SetVisible
form.GetControl("Title").SetVisible(false);
SetWidth
(width: string)
: void
Inherited from BaseControl.SetWidth
form.GetControl("Name").SetWidth("100%");
ShouldAddGlobalCssClass
()
: boolean
Inherited from BaseControl.ShouldAddGlobalCssClass
SupportsUserEdit
()
: boolean
SwitchClass
(condition: boolean, classNames: string[])
: void
Inherited from BaseControl.SwitchClass
Inherited from BaseControl.ToNormalMode
ToNormalModePrintable
()
: boolean
Inherited from BaseControl.ToNormalModePrintable
Inherited from BaseControl.ToPrintMode
ToPrintModePrintable
()
: boolean
Inherited from BaseControl.ToPrintModePrintable
Inherited from BaseControl.ToViewMode
ToggleClass
(classNames: string[])
: void
Inherited from BaseControl.ToggleClass
WaitForAsyncControlsToLoad
(callback: any)
: void
Inherited from BaseControl.WaitForAsyncControlsToLoad
CreatePropertiesFromHtmlAttributes
(c: BaseControl, el: HTMLElement)
: any
Inherited from BaseControl.CreatePropertiesFromHtmlAttributes
FromJSON
(def: any)
: Image
FromJSON2
(r: Image, def: any)
: Image
Events
OnBeginEvaluateValue
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from DataControl.OnBeginEvaluateValue
OnControlAdded
(form: pf.Form, args: IControlAddedEventArgs (Control: any, Parent: any, Sender: any))
:
Inherited from BaseControl.OnControlAdded
OnLoaded
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from BaseControl.OnLoaded
OnValueChangedFromUI
(form: pf.Form, args: IValueChangedEventArgs (Parent: any, PreviousValue: any, Sender: any, Value: any))
:
Inherited from DataControl.OnValueChangedFromUI
OnValueLoaded
(form: pf.Form, args: IEventArgs (Parent: any, Sender: any))
:
Inherited from DataControl.OnValueLoaded