0

DHTMLx 터치에 이미지를 삽입하는 방법 내가 가진 3 개 세포나는 <a href="http://dhtmlx.com/touch/designer/" rel="nofollow">DHTMLx Touch online editor</a></p> <p>을 사용하고

{ id: 'app', view: 'layout', height: 482, width: 322, 
rows: [ { view: 'layout' 
    , type: 'wide' 
    , rows: [ { view: 'view', id: 'temp_designer_view_2'} 
      , { view: 'view', id: 'temp_designer_view_3'} 
      , { view: 'view', id: 'temp_designer_view_4'} ] 
    , id: 'layout_2'} ] } 

내가 ID 'temp_designer_view_2'와 첫 번째 셀에 이미지를 배치 할과 레이아웃

답변

2

레이아웃 항목에 HTML 콘텐츠를 포함하는 "템플릿"보기를 사용하는 것이 좋을 것이다 :

{ id: 'app', view: 'layout', height: 482, width: 322, 
    rows: [ { view: 'layout' 
     , type: 'wide' 
     , rows: [ { template: "<div class='imgParent'><img .../></div>", id: 'temp_designer_view_2'} 
       , { template: '', id: 'temp_designer_view_3'} 
       , { template: '', id: 'temp_designer_view_4'} ] 
     , id: 'layout_2'} ] } 
을3210

dhtmlxTouch 패키지에서 관련 샘플을 확인하십시오. ../samples/technical/view/04_template.html 및 ../samples/technical/view/08_carousel.html

관련 문제