Skip to content
New issue

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

add setValue function #44

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

add setValue function #44

wants to merge 4 commits into from

Conversation

neozhu
Copy link

@neozhu neozhu commented Jun 15, 2017

老版本的
$citypicker3.citypicker({
province: '江苏省',
city: '苏州市',
district: '昆山市'
});
无法对控件赋值
添加一个setValue方法

$citypicker3.citypicker('setValue',{
province: '江苏省',
city: '苏州市',
district: '昆山市'
});
测试可用

neozhu added 2 commits June 15, 2017 10:23
setValue:function(val){
          //console.log('setValue',val);

var $select = this.$dropdown.find('.city-select');

$select.data('item', null);
          // parse value from value of the
target $element
          //console.log(this.dems)

$.each(this.dems, $.proxy(function (i, type) {

this.options[type] = val[type];

              this.output(type);

}, this));
          this.tab(PROVINCE);
          this.feedText();

this.feedVal();
        },
@tshi0912
Copy link
Owner

@neozhu src/statetimeline.js 和 src/css/processbar.css 是用来做什么的?

@neozhu
Copy link
Author

neozhu commented Nov 20, 2017

这两个文件没用的,是我一个项目里用到的和你这个没关系可以删掉

@neozhu
Copy link
Author

neozhu commented May 8, 2018

新增了清空功能

@tshi0912
Copy link
Owner

Please paste the screenshot about the clean button, I need confirm the visuals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants