2024 PHP Conference Japan

輸入控制項

(UI 0.9.9)

簡介

輸入控制項是一個文字輸入控制項,適用於輸入純文字、密碼或搜尋詞彙。

類別概要

class UI\Controls\Entry extends UI\Control {
/* 常數 */
const int Normal;
const int Password;
const int Search;
/* 建構函式 */
public __construct(int $type = UI\Controls\Entry::Normal)
/* 方法 */
公開 getText(): 字串
保護 onChange()
公開 setReadOnly(布林值 $readOnly)
公開 setText(字串 $text)
/* 繼承方法 */
}

預定義常數

UI\Controls\Entry::Normal

一般的單行輸入框

UI\Controls\Entry::Password

密碼輸入框

UI\Controls\Entry::Search

搜尋輸入框

目錄

新增註記

使用者貢獻的註記

此頁面沒有使用者貢獻的註記。
To Top