Memo

TsgcHTMLComponent_Memo — Delphi, C++ Builder 및 .NET에서 Bootstrap 5 textarea를 렌더링하는, 레이블, 구성 가능한 행 수 및 데이터셋 바인딩을 갖춘 여러 줄 텍스트 영역 입력입니다.

TsgcHTMLComponent_Memo

레이블이 있는 Bootstrap <textarea>를 내보내는 독립형 여러 줄 입력입니다. 이름, 레이블 및 행 수를 설정한 다음, HTML 속성을 읽습니다. 형제 격인 Edit, CheckBox 및 RadioGroup 입력과 같은 유닛에 제공됩니다.

컴포넌트 클래스

TsgcHTMLComponent_Memo

렌더링

Bootstrap 5 <textarea>

패밀리

폼 및 입력

언어

Delphi, C++ Builder, .NET

생성하고, 구성하고, 렌더링하기

Name, Label_, RowsPlaceholder를 설정한 다음, HTML을 읽습니다(또는 TsgcHTMLTemplate_Bootstrap 페이지에 넣습니다).

uses
  sgcHTML_Component_Edit;

var
  oMemo: TsgcHTMLComponent_Memo;
begin
  oMemo := TsgcHTMLComponent_Memo.Create(nil);
  try
    oMemo.Name := 'notes';
    oMemo.Label_ := 'Notes';
    oMemo.Rows := 6;
    oMemo.Placeholder := 'Anything we should know?';
    oMemo.Value := 'Initial text';

    WebModule.Response := oMemo.HTML;   // Bootstrap textarea
  finally
    oMemo.Free;
  end;
end;

// Or bind it to a dataset field:
oMemo.DataField := 'Notes';
oMemo.DataSource := dsCustomer;
// includes: sgcHTML_Component_Edit.hpp

TsgcHTMLComponent_Memo *oMemo = new TsgcHTMLComponent_Memo(NULL);
try
{
  oMemo->Name = "notes";
  oMemo->Label_ = "Notes";
  oMemo->Rows = 6;
  oMemo->Placeholder = "Anything we should know?";
  oMemo->Value = "Initial text";

  String html = oMemo->HTML;   // Bootstrap textarea
}
__finally
{
  delete oMemo;
}
using esegece.sgcWebSockets;

var memo = new TsgcHTMLComponent_Memo();
memo.Name = "notes";
memo.Label_ = "Notes";
memo.Rows = 6;
memo.Placeholder = "Anything we should know?";
memo.Value = "Initial text";

string html = memo.HTML;   // Bootstrap textarea

주요 속성 및 메서드

가장 자주 사용하게 되는 멤버.

식별

Name은 필드 이름을, Label_은 보이는 캡션을, MemoID는 요소 id를 설정합니다(기본값은 memo_<Name>).

값 및 힌트

Value는 textarea 콘텐츠를 초기화하고 Placeholder는 비어 있을 때 고스트 텍스트를 표시합니다.

크기

Rows는 보이는 줄 수(기본값 4)를 설정하여 textarea의 초기 높이를 제어합니다.

상태

Required, DisabledReadOnly는 유효성 검사 및 편집을 위해 입력을 표시합니다.

데이터셋 바인딩

DataField와 할당된 DataSource는 현재 레코드에서 Value를 채웁니다.

출력 및 형제

HTML은 레이블이 있는 <textarea>를 반환합니다. 같은 유닛이 형제 격인 TsgcHTMLComponent_Edit, TsgcHTMLComponent_CheckBoxTsgcHTMLComponent_RadioGroup 입력을 선언합니다.

계속 살펴보기

모든 sgcHTML 컴포넌트60개 이상의 컴포넌트 전체 기능 매트릭스를 둘러보십시오.
무료 체험판 다운로드30일 체험판에는 60.HTML 데모 프로젝트가 포함됩니다.
가격전체 소스 코드가 포함된 Single, Team 및 Site 라이선스.

시작할 준비가 되셨습니까?

무료 체험판을 다운로드하고 Delphi, C++ Builder 및 .NET에서 웹 UI를 구축하기 시작하십시오.