We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你希望增加什么功能? 弹出层layer 中的select 类型的下拉选项列表能否支持动态获取呢,目前来看只能写死固定值,要想动态获取现在能支持吗?谢谢!
The text was updated successfully, but these errors were encountered:
可以自己重写get_actions 函数,找到那个action动作更新它的layer.
def get_actions(self, request): actions = super().get_actions(request) actions['test'][0].layer = { 'title': 'test', 'confirm_button': 'OK', 'cancel_button': 'Cancel', 'width': '50%', 'labelWidth': "80px", 'params': [ { 'type': 'select', 'key': 'site', 'label': 'Site', 'require': True, 'options': [{'key': i, 'label': i} for i in sites_ids_list(username)], }, ] }
Sorry, something went wrong.
No branches or pull requests
你希望增加什么功能?
弹出层layer 中的select 类型的下拉选项列表能否支持动态获取呢,目前来看只能写死固定值,要想动态获取现在能支持吗?谢谢!
The text was updated successfully, but these errors were encountered: