Added toolkit of useful components#434
Conversation
Codecov Report
@@ Coverage Diff @@
## master #434 +/- ##
=======================================
Coverage 95.33% 95.33%
=======================================
Files 88 88
Lines 4077 4077
Branches 259 259
=======================================
Hits 3887 3887
Misses 138 138
Partials 52 52Continue to review full report at Codecov.
|
| ' <div class="col-md-12">' + | ||
| ' <div class="box">' + | ||
| ' <div class="box-header with-border"><slot name="header">{{title}}</slot></div>' + | ||
| ' <div class="box-body"><slot></slot></div>' + |
There was a problem hiding this comment.
Don't you need a named slot here too ?
There was a problem hiding this comment.
No, I keep it anonymous so everything that is between the component markers is embedded there.
| type: Function, | ||
| default: function() {} | ||
| }, | ||
| errorMessage: { |
There was a problem hiding this comment.
You never use this errorMessage
| }, | ||
| buttonClassFromType: function(value) { | ||
| var cls = {"btn": true}; | ||
| if (value === undefined) { |
There was a problem hiding this comment.
With ES6 we will use a default value like in python function(value = "danger"){...}
There was a problem hiding this comment.
yes, we need to move to babel so we can code like civilised people.
Adds the following components: