selection/selection_view library

Typedefs

OnDefaultParamsPrepared = void Function(Map<String, String> selectedParams)
TConfigTagCountPerRow = dynamic Function(int index, TSelectionEntity entity)
配置 类型为 Range 展示时,每行 tag 的数量 index 第几个 menu entity index 对应的 筛选对象
TOnCustomFloatingLayerClick = dynamic Function(int index, TSelectionEntity customFloatingLayerEntity, TSetCustomFloatingLayerSelectionParams setCustomFloatingLayerSelectionParams)
类型为 CustomLayer 被点击的回调 index 被点击的位置 customFloatingLayerEntity 被点击 index 位置的筛选数据 setCustomFloatingLayerSelectionParams 外部自定义参数回传函数
TOnCustomSelectionMenuClick = dynamic Function(int index, TSelectionEntity customMenuItem, TSetCustomSelectionParams customSelectionParams)
自定义类型的 menu 被点击的回调, index 点击位置, customMenuItem 自定义筛选 menu 原始数据, customSelectionParams 开放给外部回调给函数,用于更新自定义筛选参数,触发TOnSelectionChanged
TOnMenuItemInterceptor = bool Function(int index)
menu 点击拦截回调 index menu 的索引位置 返回 true 拦截点击方法,false 不拦截
TOnMoreSelectionMenuClick = void Function(int index, TOpenMorePage openMorePage)
点击【更多】筛选项时的回调, index 为点击的位置, openMorePage 为让用户触发的回调用于展开更多筛选页面
TOnSelectionChanged = void Function(int menuIndex, Map<String, String> selectedParams, Map<String, String> customParams, TSetCustomSelectionMenuTitle setCustomMenuTitle)
TOnSelectionPreShow = TSelectionWindowType Function(int index, TSelectionEntity entity)
筛选弹窗打开前的回调方法。
TOpenMorePage = void Function({List<TSelectionEntity> moreSelections, bool updateData})
打开更多筛选页面, updateData 是否要更新更多筛选的数据, moreSelections 最新的更多筛选数据,是否更新取决于 updateData
TSetCustomFloatingLayerSelectionParams = void Function(List<TSelectionEntity> customParams)
当更多筛选页面中,类型为 CustomLayer 被回调时,该函数用于回传参数进 BrnSelectionView 中, customParams 用户自定义参数。
TSetCustomSelectionMenuTitle = void Function({bool isMenuTitleHighLight, String menuTitle})
menuTitle 设置自定义 menu 的Title文案 isMenuTitleHighLight 设置自定义 menu 的 title 是否高亮
TSetCustomSelectionParams = void Function(Map<String, String> customParams)
自定义类型的 Menu 被点击时 让外部设置选中的 value 进来统一更新 UI,并将 function 传给外部设置筛选值。