New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mofron-comp-text

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mofron-comp-text - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

dist/text.js

@@ -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)) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc