编写 MDDropdownMenu 项
本文介绍了编写 MDDropdownMenu 项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在 MDDropdownMenu 中写入所选项目.但是,即使有这段代码,我也找不到menu.bind (.....) 函数没有任何结果
I try to write the selected item in MDDropdownMenu. But, even with this code, I don't find it I don't have any result with menu.bind (.....) function
另外,如何在.Kv文件中编写MDDropdownMenu部分
In addition, how can I write the MDDropdownMenu part in .Kv file
最好的问候
推荐答案
使用MDDropdownMenu
的callback
属性:
你可以在kv
中定义下拉菜单,像这样:
You can define the drop down menu in the kv
, like this:
这篇关于编写 MDDropdownMenu 项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!