Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. Composite Components > Required Attributes and Default Attribute Val...

Required Attributes and Default Attribute Values

The icon component implemented in Listing 9–1 is pretty handy. You can make icons look and behave exactly as you wish. But, we can make icons more useful by:

  • Requiring an image attribute

  • Letting the page author specify a CSS class for the image

  • Letting the page author trigger validation when an icon’s action is invoked


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial