Skip to content

add setValue function#44

Open
neozhu wants to merge 4 commits into
tshi0912:masterfrom
neozhu:master
Open

add setValue function#44
neozhu wants to merge 4 commits into
tshi0912:masterfrom
neozhu:master

Conversation

@neozhu

@neozhu neozhu commented Jun 15, 2017

Copy link
Copy Markdown

老版本的
$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
Copy Markdown
Owner

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

@neozhu

neozhu commented Nov 20, 2017

Copy link
Copy Markdown
Author

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

@neozhu

neozhu commented May 8, 2018

Copy link
Copy Markdown
Author

新增了清空功能

@tshi0912

Copy link
Copy Markdown
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