Skip to content

docs: include interface options in API docs #229

Closed

Description

@brandyscarney

I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request

URL:
https://beta.ionicframework.com/docs/

Currently there is no documentation for interface options. For example, see Picker: https://beta.ionicframework.com/docs/api/picker

The Picker lists types for its options including PickerButton[] and PickerColumn[] but there is no documentation (that I can find) on what these interfaces are.

Here are the interfaces directly from the src code:

export interface PickerButton {
  text?: string;
  role?: string;
  cssClass?: string | string[];
  handler?: (value: any) => boolean | void;
}

export interface PickerColumn {
  name: string;
  align?: string;
  selectedIndex?: number;
  prevSelected?: number;
  prefix?: string;
  suffix?: string;
  options: PickerColumnOption[];
  cssClass?: string | string[];
  columnWidth?: string;
  prefixWidth?: string;
  suffixWidth?: string;
  optionsWidth?: string;
  refresh?: () => void;
}

export interface PickerColumnOption {
  text?: string;
  value?: any;
  disabled?: boolean;
  duration?: number;
  transform?: string;
  selected?: boolean;
}

Activity

  1. added
    content
    on Dec 19, 2018
  2. added
    structural
    on Feb 14, 2020
  3. added
    triage
    and removed
    structural
    content
    on Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions