2017-02-17 7 views
0

정적 인 드롭 다운 목록이 있지만 AEM 터치 UI의 드롭 다운에서 값과 텍스트를 모두 가져 오려고합니다.Touch UI 드롭 다운에서 AEM의 텍스트 및 값 모두 가져 오기

<articleType 
      jcr:primaryType="nt:unstructured" 
      sling:resourceType="granite/ui/components/foundation/form/select" 
      fieldLabel="Article Type" 
      name="./articleType"> 
      <items jcr:primaryType="nt:unstructured"> 
        <select 
         jcr:primaryType="nt:unstructured" 
          text="Select Icon" 
          value=""/> 
          <article 
          jcr:primaryType="nt:unstructured" 
          text="Article" 
          value="article"/> 
          <video 
          jcr:primaryType="nt:unstructured" 
          text="Video" 
          value="video"/> 
          <infographic 
          jcr:primaryType="nt:unstructured" 
           text="Infographic" 
           value="graph"/> 
              </items> 
             </articleType> 

이제 <i class="article-icon icon" />처럼 가져오고 싶습니다. "value"에서 "icon class"를 가져올 수는 있지만 항상 텍스트를 가져올 테스트 조건이 필요합니다. 그래서 나는 이것을위한 해결책을 원한다.

+0

가 왜 그냥 값 값과 텍스트에 무엇이의 복합 만들어? 그들은 어쨌든 정적 일뿐입니다, 그렇죠? 아니면 백엔드 코드의 값에서 텍스트를 추론할까요? 정확한 사용 사례는 무엇입니까? – toniedzwiedz

+0

나는 어떤 조작도하고 싶지 않기 때문에 나에게 바람직하지 않은 구성이다. –

답변