Weex 標籤控制項

2022-09-07 21:57:29 字數 3147 閱讀 3323

1.滾動元件

<

template

>

<

scroller

>

<

div

repeat

="}"

>

<

text

>}: $}

text

>

div>

scroller

>

template

>

<

script

>

module.exports =,,,

...]

}}script

>

2.輸入框

type:text,password,url,email,tel etc,w3c標準

value:預設值

placeholder:佔位符

disabled:乙個布林屬性表明互動的表單控制項不可用。特別是,點選事件不會派遣禁用控制項

autofocus:乙個布林屬性允許指定乙個表單控制頁面載入時應該有輸入焦點

事件:

<

div>

<

input

type

="url"

autofocus

="true"

placeholder

="..."

value

=""style

="placeholder-color: #666666;"

>

input

>

div>

3.switch

checked:預設值(true,false)

事件:click:點選事件

<

div>

<

text

>muted:

text

>

<

switch

checked

="true"

>

switch

>

div>

4.video

屬性事件

pause: 觸發暫停事件.

<

div>

<

video

class

="video"

auto-play

="true"

play-status

="play"

src="..."

style

="width:500;height:500;"

>

video

>

div>

5.a

<

a href

="">

<

text

>click me to see how 'a' element opens a new world.

text

>

a>

6.web

屬性事件

<

div>

<

web

style

="width=...; height=...;"

src="..."

onpagestart

="pagestart"

onpagefinish

="pagefinish"

onerror

="error"

>

web>

div>

7.wxc-tabbar

描述"wxc-tabbar」標籤實現了乙個專門的元件對應於radio-style選擇。它顯示選項卡底部的視窗用於選擇不同的模式和顯示之間的不同weex頁模式。

屬性tab-items

這個屬性包含tab-item物件陣列,其中每個對應於radio-style選擇。在這個屬性的順序對應於螢幕上物品的順序。您可以配置tab-item tabbar的外觀設定。每個tabitem屬性可以描述如下

<

template

>

<

div

style

="flex-direction: column;"

>

<

wxc-tabbar

tab-items

= }>

wxc-tabbar

>

div>

template

>

<

script

>

require(

'weex-components');

module.exports =,,],

}}script

>

<

template

>

<

wxc-n**page

height

=} background-color

="..."

title

="..."

title-color

="..."

left-item-title

="..."

left-item-color

="..."

right-item-src

="..."

>

<

content

> ...

content

>

wxc-n**page

>

template

>

<

script

>

require(

'weex-components');

module.exports =);

this

.$on(

'n**ibar.leftitem.click',

function

(e));

}}script

>

標籤控制項 CTableCtrl 控制項

前言 區別 ctablectrl和cpropertysheet.乙個是控制項,另乙個是對話方塊屬性類 目錄 0.訊息彙總 1.常用方法總結 0.訊息彙總 1.常用方法總結 定義視窗資源以及和類進行相關繫結物件兩個,標籤控制項新增兩個子項.建立視窗,設定相關區域,移動視窗.原始碼 m tab.inse...

TextView 標籤控制項

常用 android text 顯示文字內容 android textcolor 文字的顏色 android textsize 文字的大小 android textstyle 字型樣式 bold,italic android maxlength 允許的最大字元數 android password 是...

C 窗體控制項 標籤控制項Label

visual studio附帶的許多控制項。這些控制項擁有各種功能,通過visual studio的設計功能,開發使用者介面 處理使用者的互動將非常簡單 有趣。在使用windows窗體時,就是在使用system.windows.forms命名空間。這個命名空間使用using指令包含在儲存form類的...