Kind like header,pageHeader is not working

edited May 2012 in Enyo 2
Hi, m tring to learn enyo framework but there is a problem that when i write code, that this is not display on browser, please suggest me what i do.
My code is below
<!DOCTYPE html>



  My Twitter Search
  
  
 

  

 




 enyo.kind({
 name:"app",
 components:[
 {kind: "PageHeader", content:"Header content"}
 ]
 });
 new app().renderInto(document.body);


 



Comments

  • edited May 2012
    If you are using enyo 2 (rather than 1), the "PageHeader" kind does not exist. Remove the kind:"PageHeader" part or create another kind, such as below:
    
    enyo.kind({
    	name: "PageHeader",
    	kind: enyo.Control,
    	style:"background: #67a; color:white; padding:8px; font-size:80%; height:50px"
    });
    
Sign In or Register to comment.