Class: SpanRowAttribute

SpanRowAttribute

new SpanRowAttribute()

행에 대한 스타일, 포맷, 배경색 정보를 저장하는 컴포넌트입니다.

See:
Example

레이아웃은 다음과 같은 형식으로 작성됩니다.

<rMateGrid>
     <SpanRowAttribute id="sumRowAttr" styleName="allTotalStyle" backgroundColor="#FFF19F"/>
     <SpanRowAttribute id="sumRowAttr_T" styleName="allTotalStyle" backgroundColor="#bbd713"/>
     <SpanRowAttribute id="sumRowAttr_Y" styleName="allTotalStyle" backgroundColor="#d1e844"/>
     <SpanCellAttribute id="sum1CellAttr" colNo="0" styleName="subTotalStyle" backgroundColor="#CCDD66"/>
     <SpanCellAttribute id="sum2CellAttr" colNo="1" styleName="subTotalStyle" backgroundColor="#FFE048"/>
     <SpanCellAttribute id="sumTotalCellAttr" colNo="0" styleName="allTotalHeaderStyle" backgroundColor="#a8c305"/>
     <NumberFormatter id="numfmt" useThousandsSeparator="true"/>
     <PercentFormatter id="percfmt" useThousandsSeparator="true"/>
     <DataGrid id="dg1" horizontalScrollPolicy="auto" verticalAlign="middle" selectionMode="singleCell">
         <groupedColumns>
             ...
             ...
         </groupedColumns>
         <dataProvider>
          ...
         </dataProvider>
      </DataGrid>
 </rMateGrid>

Members

backgroundColorcolor

행의 배경색

"#FFFFFF" 형식으로 표현합니다.

editableboolean

행 수정 가능여부.

DataGrid의 editable속성에 의한 편집 모드에서 클릭이나 더블클릭시에도 에디팅모드로 변환되지 않도록 합니다.

Default Value:
  • true

formatStringstring

마스크 패턴.

패턴적용이 실패하는 경우에는 원래의 데이터가 그대로 표시됩니다.

SpanCellAttribute, SpanRowAttribute의 마스크 패턴

종류마스크패턴 형식
날짜YYYY/MM/DD YYYY-MM-DD YY/MM/DD YY-MM-DD YYYY년 MM월 DD일 -기타 DateFormatter참조
숫자0 0.0 0.00 \#,##0 \#,##0.00
통화$#,##0 (USD)#,##0.00 \#,##0.0원 -통화표시는 교체가능
백분율0% 0.0% 0.00%
해제none -적용된 포맷을 모두 해제합니다

rowHeightnumber

행의 높이(픽셀단위)

DataGrid의 variableRowHeight가 true일 때 작동합니다.

styleNamestring

행에 적용할 스타일명

레이아웃의 Style 노드에 선언된 스타일명을 적어줍니다.