- Dart:Scalable Application Development
- Davy Mitchell Sergey Akopkokhyants Ivo Balbaert
- 90字
- 2021-07-09 18:56:18
Changing the colors
HTML5 provides browsers with a full-featured color picker (typically, browsers use the native OS's color chooser). This will be used to allow the user to set the background color of the editor application itself:

The color picker is added to the index.html
page with the following HTML:
<input id="pckBackColor" type="color">
The implementation is straightforward as the color picker control provides:
InputElement cp = qs("#pckBackColor"); cp.onChange.listen((e) => document.body.style.backgroundColor = cp.value);
Because the event and property (onChange
and value
) are common to the input controls, the basic InputElement
class can be used.
推薦閱讀
- Java程序設計(慕課版)
- Building a Game with Unity and Blender
- Rust編程從入門到實戰
- Mastering matplotlib
- Mastering LibGDX Game Development
- INSTANT Django 1.5 Application Development Starter
- 小學生C++創意編程(視頻教學版)
- Mastering Apache Maven 3
- MongoDB,Express,Angular,and Node.js Fundamentals
- Python+Tableau數據可視化之美
- Android系統下Java編程詳解
- Java EE 7 with GlassFish 4 Application Server
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- SEO教程:搜索引擎優化入門與進階(第3版)
- Xamarin Cross-Platform Development Cookbook