You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

333 lines
9.6 KiB

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>5. Flags · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="6_SHADOW_DOM.html" />
<link rel="prev" href="4_HANDLING_INPUT.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="./">
<a href="./">
Introduction
</a>
</li>
<li class="chapter " data-level="1.2" data-path="1_LIFECYCLE_METHODS.html">
<a href="1_LIFECYCLE_METHODS.html">
1. Lifecycle Methods
</a>
</li>
<li class="chapter " data-level="1.3" data-path="2_STRING_RENDER.html">
<a href="2_STRING_RENDER.html">
2. Rendering from string
</a>
</li>
<li class="chapter " data-level="1.4" data-path="3_TEMPLATE_RENDER.html">
<a href="3_TEMPLATE_RENDER.html">
3. Rendering template tags
</a>
</li>
<li class="chapter " data-level="1.5" data-path="4_HANDLING_INPUT.html">
<a href="4_HANDLING_INPUT.html">
4. Handling user input
</a>
</li>
<li class="chapter active" data-level="1.6" data-path="5_FLAGS.html">
<a href="5_FLAGS.html">
5. Flags
</a>
</li>
<li class="chapter " data-level="1.7" data-path="6_SHADOW_DOM.html">
<a href="6_SHADOW_DOM.html">
6. Shadow DOM
</a>
</li>
<li class="chapter " data-level="1.8" data-path="7_DEVTOOLS.html">
<a href="7_DEVTOOLS.html">
7. Pillar DevTools
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >5. Flags</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="flags">Flags</h1>
<p>If you prefix any of your element&apos;s attributes with a <code>p:</code> it becomes a <em>flag</em>.</p>
<p>Flags are passed to <code>this.flags</code> and are recommended for namespacing your &quot;service&quot; attributes.</p>
<h2 id="available-flags">Available flags</h2>
<p>Pillar also pre-defines some flags that change the behavior of Pillar components:</p>
<h4 id="pignore-children"><code>p:ignore-children</code></h4>
<p>If this flag is set, content of a custom element tag won&apos;t be passed to <code>this.props.children</code> when
component is rendered.</p>
<h4 id="pprotected"><code>p:protected</code></h4>
<p>This flag locks external attribute manipulation. If an external force like jQuery is trying to
change an element with this flag, changes won&apos;t be passed down to <code>this.props</code> and it will throw an
error.</p>
<p><strong><em>Next: <a href="3_SHADOW_DOM.html">Shadow DOM&#x2192;</a></em></strong></p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="4_HANDLING_INPUT.html" class="navigation navigation-prev " aria-label="Previous page: 4. Handling user input">
<i class="fa fa-angle-left"></i>
</a>
<a href="6_SHADOW_DOM.html" class="navigation navigation-next " aria-label="Next page: 6. Shadow DOM">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"5. Flags","level":"1.6","depth":1,"next":{"title":"6. Shadow DOM","level":"1.7","depth":1,"path":"6_SHADOW_DOM.md","ref":"6_SHADOW_DOM.md","articles":[]},"previous":{"title":"4. Handling user input","level":"1.5","depth":1,"path":"4_HANDLING_INPUT.md","ref":"4_HANDLING_INPUT.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"gitbook":"*"},"file":{"path":"5_FLAGS.md","mtime":"2017-12-10T07:13:33.586Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-12-10T08:13:31.653Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>