Working with the CollapsableConfigurationProperty control

The CollapsableConfigurationProperty control provides a collapsible set of rows, so that user controls logically grouped within the control can be shown or hidden independently of other template controls within the parent template control.

Registering the control

The following Register directive registers the CollapsableConfigurationProperty control for use on a configuration page.

<%@ Register TagPrefix="Nintex" TagName="CollapsableConfigurationProperty" 
    src="~/_layouts/15/NintexWorkflow/CollapsableConfigurationProperty.ascx" %>

Declaring the control

The following example illustrates how to add a CollapsableConfigurationProperty control to a ConfigurationPropertySection control on a configuration page.

<Nintex:ConfigurationPropertySection runat="server" Id="MainControls1">
    <TemplateRowsArea>
        ...
        <Nintex:CollapsableConfigurationProperty runat="server" FieldTitle="Optional values">
            <TemplateControlArea>
                ...
            </TemplateControlArea>
        </Nintex:CollapsableConfigurationProperty>
        ...
    </TemplateRowsArea>
</Nintex:ConfigurationPropertySection>

Implementing the control

The CollapsableConfigurationProperty control renders two rows, each with a single column, as shown in the following example. The first row contains an icon, which both indicates the collapsed or expanded state of the control and, when clicked, changes that state, and the title of the control. The second row contains the controls in the TemplateControlArea collection of the control.

The appearance of the control can be adjusted in the following ways:

See Also

Concepts

Configuration pages

Operations

Working with configuration pages

Implementing template controls

Reference

JavaScript Reference

.NET Framework Reference