Skip to content

LookupScript class

namespace: Serenity.Web   assembly: Serenity.Net.Web

Dynamic script type for lookup scripts.

public abstract class LookupScript : DynamicScript, IGetScriptData, INamedDynamicScript

Public Members

name description
CssClassField { get; set; } Gets or sets the name of the field that holds the CSS class of an item, e.g. "text-danger", which the editors that show the class of an item add to it.
IconField { get; set; } Gets or sets the lookup icon field.
IdField { get; set; } Gets or sets the lookup ID field.
LookupKey { get; set; } Gets or sets the lookup key.
LookupParams { get; } Gets the lookup parameters dictionary.
ParentIdField { get; set; } Gets or sets the lookup parent ID field.
ScriptName { get; }
TextField { get; set; } Gets or sets the lookup text field.
TextKeyField { get; set; } Gets or sets the name of the field that holds the local text key of an item, which the editors localize, or "text" when the text of an item is its key.
override GetScript()
GetScriptData()
const NewLookupFormat Format string for new Lookup({0}, {1}).
record Data Data format for a lookup script.

Protected Members

name description
LookupScript() Initializes a new instance of the LookupScript class.
abstract GetItems()

See Also