@nextcloud/dialogs
    Preparing search index...

    Interface MediaList

    The MediaList interface represents the media queries of a stylesheet, e.g., those set using a link element's media attribute.

    MDN Reference

    interface MediaList {
        length: number;
        mediaText: string;
        appendMedium(medium: string): void;
        deleteMedium(medium: string): void;
        item(index: number): null | string;
        toString(): string;
        [index: number]: string;
    }

    Indexable

    • [index: number]: string
    Index

    Properties

    length: number

    The read-only length property of the MediaList interface returns the number of media queries in the list.

    MDN Reference

    mediaText: string

    The mediaText property of the MediaList interface is a stringifier that returns a string representing the MediaList as text, and also allows you to set a new MediaList.

    MDN Reference

    Methods

    • The appendMedium() method of the MediaList interface adds a media query to the list.

      MDN Reference

      Parameters

      • medium: string

      Returns void

    • The deleteMedium() method of the MediaList interface removes from this MediaList the given media query.

      MDN Reference

      Parameters

      • medium: string

      Returns void

    • The item() method of the MediaList interface returns the media query at the specified index, or null if the specified index doesn't exist.

      MDN Reference

      Parameters

      • index: number

      Returns null | string

    • Returns string