glendix/mendix/list_value

Types

pub type FilterCondition
pub type ListValue
pub type SortDirection {
  Asc
  Desc
}

Constructors

  • Asc
  • Desc
pub type SortInstruction

Values

pub fn filter(lv: ListValue) -> option.Option(FilterCondition)

현재 필터 조건 (없으면 None)

pub fn has_more_items(lv: ListValue) -> option.Option(Bool)

더 많은 아이템이 있는지 (불확실하면 None)

pub fn items(
  lv: ListValue,
) -> option.Option(List(mendix.ObjectItem))

아이템 목록 (로딩 중이면 None)

pub fn limit(lv: ListValue) -> Int

현재 페이지 크기

pub fn offset(lv: ListValue) -> Int

현재 오프셋

pub fn reload(lv: ListValue) -> Nil

데이터 새로고침

pub fn request_total_count(lv: ListValue, need: Bool) -> Nil

전체 아이템 수 요청 (True → 요청, False → 해제)

pub fn set_filter(
  lv: ListValue,
  filter: option.Option(FilterCondition),
) -> Nil

필터 조건 설정 (None → 필터 해제)

pub fn set_limit(lv: ListValue, limit: Int) -> Nil

페이지 크기 설정

pub fn set_offset(lv: ListValue, offset: Int) -> Nil

오프셋 설정 (페이지네이션)

pub fn set_sort_order(
  lv: ListValue,
  order: List(SortInstruction),
) -> Nil

정렬 순서 설정

pub fn sort(
  id: String,
  direction: SortDirection,
) -> SortInstruction

정렬 명령 생성

pub fn sort_direction(instr: SortInstruction) -> SortDirection

정렬 방향 조회

pub fn sort_id(instr: SortInstruction) -> String
pub fn sort_order(lv: ListValue) -> List(SortInstruction)

현재 정렬 순서

pub fn status(lv: ListValue) -> mendix.ValueStatus

현재 상태 (Available, Loading, Unavailable)

pub fn total_count(lv: ListValue) -> option.Option(Int)

전체 아이템 수 (요청하지 않았으면 None)

Search Document