new GroupOptions()
Every option of the GroupOptions type has associated a property of the Group object. For instance, the option:
caption {string}, defines the caption of the groupis associated with the property:
Caption {string}, defines the caption of the group (the group's header displays its caption)which means that the following statements are equivalent:
oGroup.Options = {caption: "group"}where oGroup is an object of Group type
oGroup.SetOptions({caption: "group"})
oGroup.Caption = "group"
oGroup.SetCaption("group")
The control displays groups if:
- ShowGroupingEvents property is true
- at least a visible group is defined into the control (at least a group is added into the control's groups collection)
Members
(static) caption :any
The caption field is mapped to the Caption property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {caption: "group"}
oGroup.SetOptions({caption: "group"})
oGroup.Caption = "group"
oGroup.SetCaption("group")
Type:
- any
Example
null {null}, resets the caption of the group
"caption" {string}, defines the plain-caption for the group
caption
(static) eventShape :any
The eventShape field can be any of the following:
- the shape's name within the exontrol.Shapes.Schedule or exontrol.Shapes namespace
- a CSS color
- a JSON string-representation of an object of exontrol.Def.Shape type, for the group itself
- an object of {normal,hover,click,disabled} type. The normal, hover, click and disabled are objects of exontrol.Def.Shape type
The eventShape field is mapped to the EventShape property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {eventShape: "red"}
oGroup.SetOptions({eventShape: "red"})
oGroup.EventShape = "red"
oGroup.SetEventShape("red")
Type:
- any
Example
null {null}, no custom shape is applied (default object's shape may be applied)
"" {string}, no custom shape is applied (no default object's shape is be applied)
"red" {string}, fills the object's background in red (CSS color)
'{"fillColor": "red"}' or '{"normal":{"fillColor": "red"}}' {string}, fills the object's background in red (JSON-representation of an object of exontrol.Def.Shape type)
"xxx" {string}, indicates that exontrol.Shapes.Schedule.xxx or exontrol.Shapes.xxx is applied on the object's background. If the xxx field is missing, no custom shape is applied (no default object's shape is be applied)
"Button" or exontrol.Shapes.Button {object}, applies the "Button" shape on the object as defined into exontrol.Shapes namespace (@since 5.2)
eventShape
(static) headerShape :any
The headerShape field can be any of the following:
- the shape's name within the exontrol.Shapes.Schedule or exontrol.Shapes namespace
- a CSS color
- a JSON string-representation of an object of exontrol.Def.Shape type, for the group itself
- an object of {normal,hover,click,disabled} type. The normal, hover, click and disabled are objects of exontrol.Def.Shape type
The headerShape field is mapped to the HeaderShape property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {headerShape: "red"}
oGroup.SetOptions({headerShape: "red"})
oGroup.HeaderShape = "red"
oGroup.SetHeaderShape("red")
Type:
- any
Example
null {null}, no custom shape is applied (default object's shape may be applied)
"" {string}, no custom shape is applied (no default object's shape is be applied)
"red" {string}, fills the object's background in red (CSS color)
'{"fillColor": "red"}' or '{"normal":{"fillColor": "red"}}' {string}, fills the object's background in red (JSON-representation of an object of exontrol.Def.Shape type)
"xxx" {string}, indicates that exontrol.Shapes.Schedule.xxx or exontrol.Shapes.xxx is applied on the object's background. If the xxx field is missing, no custom shape is applied (no default object's shape is be applied)
"Button" or exontrol.Shapes.Button {object}, applies the "Button" shape on the object as defined into exontrol.Shapes namespace (@since 5.2)
headerShape
(static) id :any
For instance, the options:
groups: {G1: {caption: "group1"}, G2: {caption: "group2"}}
defines two groups with "G1" and "G2" identifiers, and "group1" and "group2" captions, where the id field is not required.
The id field is mapped to the GetID/SetID methods of the Group object, which means that the following statements are equivalent:
oGroup.Options = {id: "G1"}
oGroup.SetOptions({id: "G1"})
oGroup.ID = "G1"
oGroup.SetID("G1")
Type:
- any
Example
null {null}, the null value has no effect
"G1" {number}, defines the group with the identifier (G1). You can use the oSchedule.Group("G1") method to request the group giving its identifier.
id
(static) position :number
The position field is mapped to the Position property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {position: 1}
oGroup.SetOptions({position: 1})
oGroup.Position = 1
oGroup.SetPosition(1)
Type:
- number
Example
null {null}, the null value has no effect
0 {number}, moves the group on the first position
position
(static) title :any
The title field is mapped to the Title property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {title: "group"}
oGroup.SetOptions({title: "group"})
oGroup.Title = "group"
oGroup.SetTitle("group")
Type:
- any
Example
null {null}, indicates that that group's caption is also the group's title
"" {string}, shows no title for the group
"title" {string}, defines the plain-title for the group
title
(static) visible :boolean
The visible field is mapped to the Visible property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {visible: true}
oGroup.SetOptions({visible: true})
oGroup.Visible = true
oGroup.SetVisible(true)
Type:
- boolean
Example
false {boolean}, hides the group
true {boolean}, shows the group
visible
(static) width :number
The width field is mapped to the Width property of the Group object, which means that the following statements are equivalent:
oGroup.Options = {width: 128}
oGroup.SetOptions({width: 128})
oGroup.Width = 128
oGroup.SetWidth(128)
Type:
- number
Example
-1 {number} or null {null}, all groups with width on null are shown equaly
128 {number}, defines the width of 128px
width