{"action":"created","issue":{"url":"https://api.github.com/repos/minimalist-components/mn-button/issues/1","repository_url":"https://api.github.com/repos/minimalist-components/mn-button","labels_url":"https://api.github.com/repos/minimalist-components/mn-button/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/minimalist-components/mn-button/issues/1/comments","events_url":"https://api.github.com/repos/minimalist-components/mn-button/issues/1/events","html_url":"https://github.com/minimalist-components/mn-button/issues/1","id":197942628,"number":1,"title":"Suggestion: Markdown for this component","user":{"login":"irineu","id":978586,"avatar_url":"https://avatars.githubusercontent.com/u/978586?v=3","gravatar_id":"","url":"https://api.github.com/users/irineu","html_url":"https://github.com/irineu","followers_url":"https://api.github.com/users/irineu/followers","following_url":"https://api.github.com/users/irineu/following{/other_user}","gists_url":"https://api.github.com/users/irineu/gists{/gist_id}","starred_url":"https://api.github.com/users/irineu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irineu/subscriptions","organizations_url":"https://api.github.com/users/irineu/orgs","repos_url":"https://api.github.com/users/irineu/repos","events_url":"https://api.github.com/users/irineu/events{/privacy}","received_events_url":"https://api.github.com/users/irineu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-29T02:03:55Z","updated_at":"2016-12-29T11:23:21Z","closed_at":null,"body":"Hi, why not implement markdown tags for this component?\r\nSuch as: `<mn-button type=\"submit\" class=\"action raised\"` ... and`<mn-a />` or `<mn-link />`"},"comment":{"url":"https://api.github.com/repos/minimalist-components/mn-button/issues/comments/269616631","html_url":"https://github.com/minimalist-components/mn-button/issues/1#issuecomment-269616631","issue_url":"https://api.github.com/repos/minimalist-components/mn-button/issues/1","id":269616631,"user":{"login":"darlanmendonca","id":876227,"avatar_url":"https://avatars.githubusercontent.com/u/876227?v=3","gravatar_id":"","url":"https://api.github.com/users/darlanmendonca","html_url":"https://github.com/darlanmendonca","followers_url":"https://api.github.com/users/darlanmendonca/followers","following_url":"https://api.github.com/users/darlanmendonca/following{/other_user}","gists_url":"https://api.github.com/users/darlanmendonca/gists{/gist_id}","starred_url":"https://api.github.com/users/darlanmendonca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darlanmendonca/subscriptions","organizations_url":"https://api.github.com/users/darlanmendonca/orgs","repos_url":"https://api.github.com/users/darlanmendonca/repos","events_url":"https://api.github.com/users/darlanmendonca/events{/privacy}","received_events_url":"https://api.github.com/users/darlanmendonca/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T11:23:21Z","updated_at":"2016-12-29T11:23:21Z","body":"I like, the advantages of a components based on tag, is\r\n\r\n- more readable\r\n- easy to add features without breaking a previous implementations (because the entire markup is setted by a class js instead manually in markup\r\n\r\nyou idea to enable after complete/validate looks awesome!\r\n\r\nat moment, I dont implement this component as a tag, because I use the api customElements to to a custom tag, like\r\n\r\n```js\r\nclass MnButton extends HTMLElement {\r\n  constructor(self) {\r\n    self = super(self)\r\n    // here goes things to do on create a mn-button\r\n    // e.g. this.method1()\r\n    return self\r\n  }\r\n\r\n  method1() {\r\n\r\n  }\r\n\r\n  method2() {\r\n\r\n  }\r\n}\r\n\r\n// here I register the tag mn-button with this class as prototype\r\nwindow.customElements.define('mn-button', MnButton)\r\n```\r\n\r\nnote, I extend HTMLElement, and has ways to extends HTMLButtonElement, because button has specific behavior, \r\n\r\ne.g., inside a form, the button is by default a submit, out of a form, is just a button.\r\nnow, the tag `<a>` has specific behaviors to, like open the url in a new tab, when user click with the key ctrl (or command in macOS) to open the url in a new tab\r\n\r\nthis things, are important, I need extends this, and not reimplement all again :D, to dont generate a heavy component\r\n\r\nactually, the css of this component have only 1kb (500b if gziped)\r\nwith an addiction of js class to work, we need maintain the low size :D "}}
{"actor":{"display_login":"darlanmendonca"}}