SMART datagrid v.1 > Classes > OperateOptions

Back  Forward

DataLudi.OperateOptions.groupingToast  property

在进行行分组时,将会被显示的吐司视图的设置信息对象。 

这个设置对象将会被创建在初始化网格的时点。 

如果指定为字符串,就会在message设置值的同时,将会把visible设置为true。 如果指定为Boolean值,visible就会被设置为true。 当指定为Object时,将会只设置明确的属性。 

默认值为true.

Getter
function groupingToast(): ToastOptions
Setter
function setGroupingToast(value: ToastOptions|Object)
Code -1
    grid.setOptions({
        operate: {
            groupingToast: {
                visible: true,
                message: "Grouping...", 
                styles: {
                    background: "#ffff00",
                    fontSize: "20px"
                }
            }
        }
    });
Code -2
    grid.setOperateOptions({
        groupingToast: {
            visible: true,
            message: "Grouping...", 
            styles: {
                background: "#ffff00",
                fontSize: "20px"
            }
        }
    });
Code -3
    grid.operateOptions().setGroupingToast({ 
        visible: true,
        message: "Grouping...", 
        styles: {
            background: "#ffff00",
            fontSize: "20px"
        }
    });
See Also
groupingEnabled
sortingToast
filteringToast
ToastOptions
Examples
行分组