Skip to content

Commit f64996d

Browse files
Merge branch 'master' into master
2 parents 9d22fe7 + 53c9826 commit f64996d

File tree

6 files changed

+39
-16
lines changed

6 files changed

+39
-16
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BotUI
22

3-
[![Join the chat at https://gitter.im/BotUIChat/botui](https://badges.gitter.im/BotUIChat/botui.svg)](https://gitter.im/BotUIChat/botui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![npm](https://img.shields.io/npm/v/botui.svg?style=flat-square)](https://www.npmjs.com/package/botui) [![npm](https://img.shields.io/npm/dm/botui.svg?style=flat-square)](https://www.npmjs.com/package/botui) [![newsletter](newsletter.png)](https://tinyletter.com/moinhq)
3+
[![Join the chat at https://gitter.im/BotUIChat/botui](https://badges.gitter.im/BotUIChat/botui.svg)](https://gitter.im/BotUIChat/botui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![npm](https://img.shields.io/npm/v/botui.svg?style=flat-square)](https://www.npmjs.com/package/botui) [![npm](https://img.shields.io/npm/dm/botui.svg?style=flat-square)](https://www.npmjs.com/package/botui) [![newsletter](newsletter.svg)](https://tinyletter.com/moinhq)
44

55
> A JavaScript framework to create conversational UIs.
66
@@ -22,17 +22,17 @@ We are listing all the cool projects that people are building with BotUI, [here]
2222
```
2323

2424
```javascript
25-
var botui = new BotUI('botui-app'); // give it the id of container
25+
var botui = new BotUI('botui-app') // give it the id of container
2626

2727
botui.message.bot({ // show first message
2828
delay: 200,
2929
content: 'hello'
30-
}).then(function () {
30+
}).then(() => {
3131
return botui.message.bot({ // second one
3232
delay: 1000, // wait 1 sec.
3333
content: 'how are you?'
34-
});
35-
}).then(function () {
34+
})
35+
}).then(() => {
3636
return botui.action.button({ // let user do something
3737
delay: 1000,
3838
action: [
@@ -45,16 +45,16 @@ botui.message.bot({ // show first message
4545
value: 'really_good'
4646
}
4747
]
48-
});
49-
}).then(function (res) {
48+
})
49+
}).then(res => {
5050
return botui.message.bot({
5151
delay: 1000,
52-
content: 'You are feeling ' + res.text + '!'
53-
});
54-
});
52+
content: `You are feeling ${res.text}!`
53+
})
54+
})
5555
```
5656

5757

5858
### License
5959

60-
[MIT License](https://github.com/moinism/botui/blob/master/LICENSE) - Copyrights (c) 2017 - Moin Uddin
60+
[MIT License](https://github.com/moinism/botui/blob/master/LICENSE) - Copyrights (c) 2017-18 - Moin Uddin

Showcase.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Below are the projects that are using BotUI.
66
>
77
> Or (recommended) create an issue with title 'Showcase: < short title of project here >'.
88
9+
Other [Github projects](https://github.com/botui/botui/network/dependents) using BotUI.
910

1011
### Projects
1112

newsletter.png

-1.42 KB
Binary file not shown.

newsletter.svg

Lines changed: 7 additions & 0 deletions
Loading

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"dependencies": {},
2727
"devDependencies": {
28+
"bumped": "^0.10.11",
2829
"gulp": "^3.9.1",
2930
"gulp-banner": "^0.1.3",
3031
"gulp-clean-css": "^3.5.0",
@@ -36,6 +37,7 @@
3637
"htmlclean": "^3.0.2"
3738
},
3839
"scripts": {
40+
"release": "bumped release",
3941
"build": "gulp",
4042
"test": "echo \"Error: no test specified\" && exit 1",
4143
"watch": "gulp watch"

test.html

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,26 @@
4040
photo: false,
4141
content: 'Hello World from human!'
4242
}).then(function () {
43-
botui.action.text({
43+
botui.action.select({
4444
action: {
45-
button: {
46-
icon: 'check',
47-
label: 'Submit'
45+
placeholder : "Select Language",
46+
value: 'TR,EN', // Selected value or Selected Array object. Example: [{value: "TR", text : "Türkçe" },{value: "EN", text : "English" }]
47+
multipleselect : true, // Default: false
48+
options : [
49+
{value: "EN", text : "English" },
50+
{value: "ES", text : "Español" },
51+
{value: "TR", text : "Türkçe" },
52+
{value: "DE", text : "Deutsch" },
53+
{value: "FR", text : "Français" },
54+
{value: "IT", text : "Italiano" },
55+
],
56+
button: {
57+
icon: 'check',
58+
label: 'OK'
59+
}
4860
}
49-
}
61+
}).then(function (res) {
62+
console.log(res.value);
5063
});
5164
});
5265
</script>

0 commit comments

Comments
 (0)