Paneling the contact list in 3.0

From TrillWiki

Jump to: navigation, search

This is a tip on adding panels to the contact list. For the main article on panels, see Panel

So, you of course want to panel your contact lists... This's a bit counterintuitive, because you don't have panel zones. In fact, the only thing that even closely resembles panels, is the fact that we have a <panel /> tag. We don't include those, though.

What we first have to do, is just create a normal contact list.

<icontrol name="list" source="sectionlist">
<rect />
</icontrol>
<control name="sectionlist" type="list">
<icon .../>
...(Just the normal way)...
</control>

Now that we have a working list - I hope so :), we'd like to add these panels to them! We don't <include-panel /> anything, instead we just plainly make a panel with type contacts.

<panel type="Contacts" name="panelContacts" source="comPanelContacts" phase="default" description="My Contacts"/>

Now, we have panelContacts...

<component name="panelContacts">
<icontrol source="lblPanel" name="panel.title">
<rect />
</icontrol>
<icontrol name="section" source="sectioninpanel">
<rect />
</icontrol>
</component>

[edit] See also

Personal tools