charsToTrimFromKey

Typeproperty
Dictionarywidget.treeview
LibraryTree View
Syntax
get the charsToTrimFromKey of <widget>
set the charsToTrimFromKey of <widget> to <pChars>
Associationscom.livecode.widget.treeview
Summary

The number of leading characters to trim from the key for display.

Parameters
NameTypeDescription
pChars

Number of leading characters to trim from the key.

RelatedProperty: arrayData
Description

The charsToTrimFromKey property controls the number of leading characters that are removed from the keys of the arrayData of the widget. This allows a custom sort where the sort portion of the key is not displayed.

With charsToTrimFromKey set to 2, the following array: [1 CCC] [2 BBB] [3 AAA]

Would display in the widget as: [CCC] [BBB] [AAA]