alpha-coders
  • Alpha Coders
  • Reference
    • Classes
      • Alpha
    • Properties
      • getSpecificWallpapers
      • getList
    • Methods
      • ofCategory
      • ofSubCategory
      • bySort
      • fromCategory
      • fromSubCategory
      • fromTag
      • getRandomWallpaper
      • getWallpaper
      • search
      • queryCount
    • Types
Powered by GitBook
On this page
  1. Reference
  2. Methods

fromSubCategory

Gets an Array of wallpapers belonging to a single Sub-Category.

PreviousfromCategoryNextfromTag

Last updated 2 years ago

CtrlK
  • Parameters
  • Returns
  • Example Code

This method belongs to the property - getSpecificWallpapers

Parameters

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

id

ID of the Sub-Category.

options

👍

Optional parameters.

Returns

Promise<Array<Wallpaper> | null>

Example Code

<getWallpapers>.fromSubCategory(1).then(x => console.log(x));

// OR

<getWallpapers>.fromSubCategory(1, {
    page: 10,
    operator: 'min',
    type: 'phone',
    ratio: [0.75, 1]
}).then(x => console.log(x));
Number
GetWallpaperOptions