I want the UIList to not show the filter options (inkl. the plus button).
I've use following flag:
self.use_filter_show = False
The flag disables the filters but not the plus button. I thought it's a bug and created following issue, but it's not.
https://developer.blender.org/T43455
So my question is how it's done correctly? To hide the filter with the button in a UIList.
Here my list code:
class SCENE_UL_ds_effect_collection(bpy.types.UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
self.use_filter_show = False
ob = data
if self.layout_type in {'DEFAULT', 'COMPACT'}:
if item:
layout.prop(item, "name", text="", emboss=False)
else:
layout.label(text="", translate=False)
elif self.layout_type in {'GRID'}:
layout.alignment = 'CENTER'
layout.label(text="", icon_value=icon)
+
button AFAIK. $\endgroup$ – CoDEmanX Feb 2 '15 at 14:51use_filter_show
flag it's possible to hide the filters but not the+
button. This is strange in my opinion. If I can hide the filters I should also be able to hide the button that enables the filters. Now nothing happens when the user clicks on the+
button and that is strange. $\endgroup$ – PHEDev Feb 2 '15 at 16:47