mofron-comp-text
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -233,3 +233,3 @@ require("mofron-event-click"); | ||
if (null === _clr) { | ||
return this.getStyleTgt().getStyle('color'); | ||
return this.style('color'); | ||
} | ||
@@ -236,0 +236,0 @@ if ('object' !== (typeof _clr === 'undefined' ? 'undefined' : _typeof(_clr))) { |
{ | ||
"name": "mofron-comp-text", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "text component for mofron", | ||
@@ -5,0 +5,0 @@ "main": "dist/text.js", |
# mofron-comp-text | ||
Text Component for mofron | ||
# sample | ||
```html | ||
<html> | ||
<head></head> | ||
<body style="margin:0px;padding:0px;"></body> | ||
<script src='./path/to/webpack/output.js'></script> | ||
</html> | ||
``` | ||
```javascript | ||
require('mofron'); | ||
require('mofron-comp-button'); | ||
var text = new mofron.comp.Text('Test'); | ||
text.visible(true); // push to DOM | ||
text.size(50); // set font-size (50px) | ||
``` | ||
#class specification | ||
| Method | Parameter | Description | | ||
|:------------------|:-----------------------------------------------------------------|:-------------------------------| | ||
| text | string : text contents (option) | set parameter : update text contents<br>no parameter : get text contents | | ||
| size | number(px) : text size (option) | set parameter : update text size<br>no parameter : get text size | | ||
| color | object : color object (option) | set parameter : update text color<br>no parameter : get text color| | ||
| setLink | string : link url<br>boolean : new tab flag (option)| set link text| | ||
| font | object : font object (option) | set parameter : update text font<br>no parameter : get text font| |
@@ -153,3 +153,3 @@ /** | ||
if (null === _clr) { | ||
return this.getStyleTgt().getStyle('color'); | ||
return this.style('color'); | ||
} | ||
@@ -156,0 +156,0 @@ if ('object' !== (typeof _clr)) { |
18831
30