Skip to content

Latest commit

 

History

History
131 lines (90 loc) · 3.46 KB

_pages_section_d_.section.md

File metadata and controls

131 lines (90 loc) · 3.46 KB

ReferenceSmartAppPageSection

Section

A section is a labeled collection of settings. The contents can be made collapsable if desired. To create a basic non-collapsable section:

page.section('section1', section => {
    // create settings here, e.g
    section.booleanSetting('turnBackOn')
}

To make this section collapsable (and initially collapsed):

page.section('section1', section => {
    section.hideable(true).hidden(true)

    // create settings here, e.g
    section.booleanSetting('turnBackOn')
}

Section Options

Setting Methods

defaultRequired

defaultRequired(id: string): Section

Specifies that all settings in the session should default to being required

Parameters:

Name Type
id string

Returns: Section


hidden

hidden(id: string): Section

Specifies that the section should initially be hidden

Parameters:

Name Type
id string

Returns: Section


hideable

hideable(id: string): Section

Specifies that the section should be able to be hidden (though not initially hidden)

Parameters:

Name Type
id string

Returns: Section


name

name(id: string): Section

Sets the name (label) of the section. Normally not set if the i18n framework is being used

Parameters:

Name Type
id string

Returns: Section


style

style(id: string): Section

Sets the session style

Parameters:

Name Type
id string

Returns: Section