web-components
åä¸è¡ããã¹ããã³ãã¼ããããæååãã¬ãããtBoardããä½ã£ãï¼Polymer 2.0 ã®PWA (Progressive Web Apps) ã¨ãã¦åºæ¥ä¸ãã£ã¦ããï¼å¿ è¦ãªPolymerã³ã³ãã¼ãã³ããçµã¿åããã¦ããã¨ç»é¢ãã¶ã¤ã³ãä»ä¸ããï¼ä»åèªä½ããã³ã³ãã¼ãã³ãã¯ï¼ããã¹ãâ¦
Chrome v54ã«ãªã£ãã®ã§ææ°ä»æ§ã® Shadow DOM 㨠Custom Elements ã使ããããã«ãªã£ãï¼HTMLã®å¤§é²åã«åãã第ä¸æ©ã«ãªãã¨æãï¼ãããã®æ©è½ãæ´»ç¨ãããã¨ã«ããï¼ç¬èªã®HTMLè¦ç´ ãå®ç¾©ã§ããããã«ãªãï¼ ããã¤ãã®<div>ã<iframe>ãçµã¿åããã¦ä½ããããã¢ã</iframe></div>â¦
img-view ã¦ã§ããã¼ã¸ã§åçã表示ãããå ´åã¯<img>ã¿ã°ã使ã£ã¦ <img src="http://images.miil.me/j/1c3b3f42-c0c0-11e5-a6e4-22000aba146f.jpg"> ã¨ããã°è¯ãã®ã§ããï¼Chromeã¢ããªã§ã¯ã»ãã¥ãªãã£ä¸ã®çç±ã§ãã®ãããªæ¹æ³ã§å¤é¨ï¼ã¢ããªããã±ã¼ã¸å¤ï¼ã®ç»åãèªã¿è¾¼ããã¨ãã§ãã¾ããï¼èªã¿è¾¼ã¿ã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ãï¼ å ¬å¼ã®ãâ¦
Polymerã使ãã¨ãã®ç¾ç¶ ä¾ãã°ãPolymerãç¨ãã¦ä½ã£ãã«ã¹ã¿ã ã¨ã¬ã¡ã³ãã使ããã¨ãèãã¾ããã©ã®ãããªã«ã¹ã¿ã ã¿ã°ã使ãå ´åã§ãã£ã¦ããHTMLã®ä¸ã§<link rel="import" href="">ãæ¸ãã¦ãPolymerãmy-elementã®ã³ã¼ããèªã¿è¾¼ãå¿ è¦ãããã¾ãã以ä¸ã®ããã«æ¸ãã¾ãã <html> <head> <meta charset="utf-8"> <title>Demo</title></meta></head></html></link>â¦
JavaScriptã«<polymer-element>ã¿ã°ãReactã®JSXè¨æ³ã§æ¸ãã便å©ã¹ã¯ãªãããæ¸ãã¾ãããbabelã¨ä¸ç·ã«ä½¿ãã¾ãã babelã¯ã次ä¸ä»£ã®JavaScriptãä»ã®JavaScriptã«å¤æãã¦ããããã©ã³ã¹ãã¤ã©ã§ãã babelã§ã¯React.jsã®JSXãå±éãããã¨ãã§ãã¾ãã JSXã¨ã¯ãJavaScrip</polymer-element>â¦
ãã®è¨äºã¯ã以ä¸ã®2ã¤ã®è¨äºã®ç¶ãã§ãã ååã¾ã§ã¯ãæ°ãããªã£ãPolymerã®æ§åãå°ãã ã観å¯ãã¦ããªãªã¸ãã«ãªHTMLã¿ã°ãä½ãã¨ããã¾ã§ãã£ã¦ãã¾ããã ç®æ¬¡ ã復ç¿ãä½ã£ãHTMLã¿ã°ã®ãã¢ãéã åååã«ä¸ç·ãå¼ãã¦ã¿ã åååã太åã«ãã¦ã¿ã â¦
æ¨æ¥ã®è¨äºã«å¼ãç¶ããPolymerã®è©±ã§ããä»æ¥ã¯ä»¥ä¸ã®Polymerå ¬å¼ãã¼ã¸ Publish an element - Polymer Project ãèªã¿ãªãããreusableãªelementãã¤ããã¾ããããã°ãæ¸ããªããããã°ã©ã ãæ¸ãã¦ããã¾ããããã°é§åéçº!!! ååã®ã¿ npmã§polyserveâ¦
Polymer 1.0 ã®åå¼·ãå§ãã¦ã¿ããã¨æãã æè¿è§¦ã£ã¦ããªãã£ããããã²ã¨ã¾ãæãåºãããã«å¤ããã¼ã¸ã§ã³ï¼v0.5ï¼ã®Polymerã§æ¸ããscrollHeaderPanelã¨ãæ°ãã¼ã¸ã§ã³ï¼v1.0ï¼ã®ãã®ãè¦æ¯ã¹ã¦ã¿ãã å称ãå¤ãã£ã¦ãã ãã¼ã¸ã§ã³ãå¤ãã£ã¦ããã»ã¼â¦
Web Componentsãä½æãã¦ããã¨ãããããã¨èªã¿è¾¼ããã¡ã¤ã«ã大ãããªããããããã®ã¾ã¾GitHubã«ã¢ãããã¦ãã¾ãã¨Cloneããã¨ãã®æéããã°ããã¨ã«ãªãã®ã§ãããã±ã¼ã¸ããã¼ã¸ã£ã¼ Bower ã使ããã¨ã«ãã¾ãããï¼ã¯ãããã使ãã¹ãã§ãããï¼
HTMLã®ã«ã¹ã¿ã ã¨ã¬ã¡ã³ããgriddles-ui-cardãã®ææ°ãã¼ã¸ã§ã³ï¼version 0.3.0ï¼ã¨ãã¢ã¢ããªãGitHubã«ã¦ãªãªã¼ã¹ãã¾ããã
Web Componentå¶ä½ã«ãããcontentã¿ã°ã®ä½¿ãæ¹ã«ã¤ãã¦åå¼·ãã¾ããã
Polymerã§æä¾ããã¦ãããcore-scroll-header-panelãã¨ã¬ã¡ã³ãã®ãããèæ¯ç»åãåçã«å¤æ´ããæ¹æ³ã«ã¤ãã¦ã®è¨äºã§ãã
chromeã§ã¯aã¿ã°ã®downloadå±æ§ãç¨ãã¦ãã¡ã¤ã«ããã¦ã³ãã¼ãããããã¨ãã§ããããã§ãããããããç°¡åã«æ±ãããã«ãWeb Componentãa-downloadããã¤ããã¾ããã
ä½æãã Web Components ãå ¬éããããã®ãªãã¸ããªãGitHubã«éè¨ãã¾ããã
åãã¦ã®ã«ã¹ã¿ã ã¨ã¬ã¡ã³ãä½ãã«ææ¦ãã¾ããPolymerãç¨ãã¦ã³ã³ãã¼ãã³ããä½è£½ããéç¨ãç´¹ä»ãã¦ãã¾ãã
Chrome Dev Editor ã§ãæ製Polymerã³ã³ãã¼ãã³ããä½è£½ããããã®æºåãç´¹ä»ãã¦ãã¾ãã
Polymerã使ãã°ããæ¢åã®ã³ã³ãã¼ãã³ãã使ããã»ãèªåã®ãæ製ã®ã³ã³ãã¼ãã³ããä½ããã¨ãã£ãWeb Componentsã©ã¤ããæ軽ã«ä½é¨ã§ããããã«ãªãããã§ãã
Web Componentsã®åå¼·ãã¯ããã¾ãããCustom ElementsãTemplate TagãShadow DOMãHTML Importsã«ã¤ãã¦åºæ¬çãªé¨åã調ã¹ã¾ããã