OLD | NEW |
1 <div id="pageData-title" class="pageData">Options</div> | 1 <div id="pageData-name class="pageData">Options</div> |
2 <div id="pageData-showTOC" class="pageData">true</div> | 2 <div id="pageData-showTOC" class="pageData">true</div> |
3 <p>To allow users to customize the behavior of your extension, you may wish to p
rovide an options page. If you do, a link to it will be provided from the extens
ions management page at chrome://extensions. Clicking the Options link opens a n
ew tab pointing at your options page. | 3 <p>To allow users to customize the behavior of your extension, you may wish to p
rovide an options page. If you do, a link to it will be provided from the extens
ions management page at chrome://extensions. Clicking the Options link opens a n
ew tab pointing at your options page. |
4 | 4 |
5 <h2>Step 1: Declare your options page in the manifest</h2> | 5 <h2>Step 1: Declare your options page in the manifest</h2> |
6 | 6 |
7 <pre>{ | 7 <pre>{ |
8 "name": "Test Extension", | 8 "name": "Test Extension", |
9 "version": "1.0", | 9 "version": "1.0", |
10 "description": "This is a test", | 10 "description": "This is a test", |
11 <b>"options_page": "options.html"</b> | 11 <b>"options_page": "options.html"</b> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 <button onclick="save_options()">Save</button> | 68 <button onclick="save_options()">Save</button> |
69 </body> | 69 </body> |
70 </html> | 70 </html> |
71 </pre> | 71 </pre> |
72 | 72 |
73 <h2>Important notes</h2> | 73 <h2>Important notes</h2> |
74 <ul> | 74 <ul> |
75 <li>This feature is checked in to the trunk and should land in official builds s
ometime <b>after</b> version 4.0.222.x.</li> | 75 <li>This feature is checked in to the trunk and should land in official builds s
ometime <b>after</b> version 4.0.222.x.</li> |
76 <li>We plan on providing some default css styles to encourage a consistent look
across different extensions' options pages. You can star <a href="http://crbug.c
om/25317">crbug.com/25317</a> to be notified of updates.</li> | 76 <li>We plan on providing some default css styles to encourage a consistent look
across different extensions' options pages. You can star <a href="http://crbug.c
om/25317">crbug.com/25317</a> to be notified of updates.</li> |
77 </ul> | 77 </ul> |
OLD | NEW |