{"title":"定制表格导出","inframe":false,"hidden":false,"roles":{"demo":1,"dev":1},"pageLink":"","children":[{"configs":{"itemId":"module"},"children":[{"configs":{"layout":"fit","itemId":"viewport1"},"children":[{"configs":{"exportTitle":"导出表格标题","exportFilename":"导出文件名","itemId":"grid1"},"children":[{"configs":{"autoLoad":"true","itemId":"store","url":"m?xwl=examples/crud/crud-db-access/basic-select"},"children":[],"type":"store","expanded":false},{"configs":{"itemId":"columns"},"children":[{"configs":{"xtype":"rownumberer","itemId":"rowNumCol"},"children":[],"type":"column","expanded":false},{"configs":{"text":"不显示但可导出","showInMenu":"false","hidden":"true","width":"130","allowExport":"true","dataIndex":"ID_FIELD","itemId":"idCol"},"children":[],"type":"column","expanded":false},{"configs":{"text":"二层表头","itemId":"strBoolCol"},"children":[{"configs":{"text":"字符串字段","width":"120","dataIndex":"STRING_FIELD","itemId":"stringCol"},"children":[],"type":"column","expanded":true},{"configs":{"text":"键值字段","keyName":"bool","dataIndex":"BOOL_FIELD","itemId":"boolCol"},"children":[],"type":"column","expanded":true}],"type":"column","expanded":true},{"configs":{"text":"<a href=\"http://www.putdb.com\" target=\"_blank\">HTML链接表头<\/a>","exportText":"HTML链接表头","itemId":"mixedCol"},"children":[{"configs":{"text":"数字列","itemId":"numCols"},"children":[{"configs":{"text":"标题右对齐","align":"right","dataIndex":"INT_FIELD","titleAlign":"right","format":"#,###","itemId":"intCol"},"children":[],"type":"column","expanded":true},{"configs":{"text":"标题左对齐","align":"right","dataIndex":"DOUBLE_FIELD","titleAlign":"left","itemId":"doubleCol"},"children":[],"type":"column","expanded":true},{"configs":{"text":"百分比","align":"right","dataIndex":"DOUBLE_FIELD","titleAlign":"left","format":"#,###.00%","itemId":"percentCol"},"children":[],"type":"column","expanded":true}],"type":"column","expanded":true},{"configs":{"text":"日期时间字段","width":"170","dataIndex":"DATETIME_FIELD","itemId":"datetimeCol"},"children":[],"type":"column","expanded":true}],"type":"column","expanded":true},{"configs":{"text":"该列不导出","allowExport":"false","dataIndex":"CLOB_FIELD","itemId":"clobCol","flex":"1"},"children":[],"type":"column","expanded":true}],"type":"array","expanded":true}],"type":"grid","expanded":true}],"type":"viewport","expanded":true}],"type":"module","expanded":true}],"iconCls":""}