Config for list index mode in edit's setVariableTypes
This config is for list.
- How to specify
- List index config format
- List index config key
- type
- Format for type
- Value table for type
- layout
- col key for layout
- name
- desc
- list
- Format for list
- Key-value table for list
- Ex for list
- searchBox
- click
- longClick
- alter
- settingimport
- Set setVariableTypes like bellow
{variableName}:LI=
- Specify by setting variables(listIndexConfig) in fannel
/// SETTING_SECTION_START
listIndexConfig="file://${list index config path1}"
/// SETTING_SECTION_END
${list index config path1}
con
type=
tsvEdit,
list=
listDir=`${cmdTtsPlayerTableTsvPath}`
|compPath=`${cmdTtsPlayerTableInitTsvConPath}`
|prefix=`${TTS_PREFIX}`
|suffix=`${TSV_SUFFIX}`
,
name=
removeExtend=,
click=
enableUpdate=ON
|acVar=runToConfigState
?importPath=
`${cmdTtsPlayerChangeStateAction}`
?replace=
STATE=`${MANAGER}`
&ON_LIST_DIR_UPDATER=ON
&ON_PLAY_INFO_SAVE=ON,
longClick=
|func=MENU
?args=
menuPath=
`${cmdTtsPlayerTableLongPressListIndexMenuPath}`,
searchBox=
visible=OFF,
{config key1}=
...,
{config key2}=
...,
{config key2}=
...,
.
.
.
- Each config key is concat by
,
List type
value
value | Description |
---|---|
normal |
Handle file list (default) |
tsvEdit |
Handle two colmun tsv lines |
tsvEdit
treat key value tsv (two column tsv without header)
Decide layout
key-value
Set layout type like bellow.
value | Description |
---|---|
linear |
Display as linear layout (default) |
grid |
Display as grid layout |
Col num for grid layout
Display list name
key-value
- ex
name=
{key1}={value1}
|{key2}={value2}
|{key3}=...
|...
- key is concat by
|
Key name | value | Description |
---|---|---|
onHide |
ON OFF (default) |
Hide file name |
length |
num string | Limit display file name |
removeExtend |
None | Remove extend when set this key |
compPrefix |
string | Comp prefix list |
compSuffix |
string | Comp suffix |
shellPath |
path string | Make file name by shell |
name=
|length=50
|onHide=
|removeExtend=
|length=50
|shellPath=${SHELL_PATH},
echo "${EDIT_TARGET_CONTENTS}" \
| ${b} awk '{print "put name"$0}'
${EDIT_TARGET_CONTENTS}
-> Auto replace with intermediate file name contents${b}
-> busybox symlink path
Description setting in cardview
key-value
- ex
desc=
{key1}={value1}
|{key2}={value2}
|{key3}=...
|...
Key name | Description |
---|---|
length |
hide file name |
shellPath |
make file name by shell: ${EDIT_TARGET_CONTENTS} is intermediate desc con |
- Concat by
|
desc=
length=10
|shellPath="${SHELL_PATH}"
echo "${EDIT_TARGET_CONTENTS}" \
| ${b} awk '{print $0}'
${EDIT_TARGET_CONTENTS}
-> Auto replace with edit target contents${b}
-> busybox symlink path
List setting
key-value
- ex
desc=
{key1}={value1}
|{key2}={value2}
|{key3}=...
|...
Key name | value | Description |
---|---|---|
listDir |
path string | List dir path or tsv path |
prefix |
string |
OR prefix list by separated &
|
suffix |
string |
OR suffix list by separated &
|
filterShellPath |
path string | Shell path for making filter string: ${ITEM_NAME} mean bellow type is normal -> file name tsvEdit -> first column (title) |
editByDrag |
${key}=${value} | Disable to drag and sort edit by bellow editByDragDisable =ON -> disable other -> enable |
sortType |
lastUpdate sort reverse
|
lastUpdate -> order by last update sort -> normal sort reverse -> reverse sort |
compPath |
path string | Complete list by comp path contents |
onReverseLayout |
ON other (default) |
Enable reverse layout |
onOnlyExistPath |
ON other (default) |
Enable if body is exist path when type = tsvEdit
|
- Enable to specify by
file://
prefix - Concat by
|
[type is normal] case
type=normal,
list=
listDir=`${LIST_DIR_PATH}`
|editByDrag=
editByDragDisable=ON
|compPath=`${COMP_PATH}`
,
file name1
file name1
file name1
- Specify one column tsv file in type is
normal
[type is tsvEdit
and file prefix specify] case
type=tsvEdit,
list=
listDir=`file://${SETTING_PATH}`
|prefix=`file://${SETTING_PATH}`
|suffix=`file://${SETTING_PATH}`
|onOnlyExistPath=ON
|compPath=`${COMP_PATH}`
,
listDir ${TSV_PATH}
prefix prefix1&prefix2
suffix suffix1&suffix2
- Specify tsv file in
file://
prefix
comp title1 comp body1
comp title2 comp body2
comp title3 comp body3
- Specify two column tsv file in
type
istsvEdit
[layout is grid and file prefix specify] case
type=tsvEdit,
layout=grid,
list=
listDir=`file://${SETTING_PATH}`
|prefix=`file://${SETTING_PATH}`
|suffix=`file://${SETTING_PATH}`
|compPath=`${COMP_PATH}`
,
listDir ${GRID_DIR_PATH}
prefix prefix1&prefix2
suffix suffix1&suffix2
- Specify tsv file in
file://
prefix
comp title1 comp body1
comp title2 comp body2
comp title3 comp body3
- Specify two column tsv file in
type
istsvEdit
Search box setting
key-value
- ex
searchBox=
{key1}={value1}
|{key2}={value2}
|{key3}=...
|...
Key name | value | Description |
---|---|---|
hint |
string | Search box hint |
visible |
OFF other (default) |
Search box visiblity |
- Concat by
|
searchBox=
hint="hint string"
|visible=ON
Click action
key-value
- ex
click=
{key1}={value1}
|{key2}={value2}
|{key3}=...
|...
Key name | value | Description |
---|---|---|
onScriptSave |
ON / other |
Save fannel contents on click |
monitorSize |
ON / other |
Sizing monitor on click |
func |
js action macro | js action process macro |
- Concat by
|
Key name | value | Description |
---|---|---|
args |
js action args | js action process macro |
js action key | js action con | user implemented js action con |
- Concat by
?
click=
onScriptSave
|func=QR_SCAN
-> Js action macro for toolbar
Long click action
Similer to click
Alter by condition detail
Import enable to this config, -> detail