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

ofSubCategory

Get the list of Sub-Categories in a given Category.

PreviousofCategoryNextbySort

Last updated 2 years ago

CtrlK
  • Parameters
  • Returns
  • Example Code

This method belongs to the property - getList

Parameters

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

id

ID of a Category.

page

👍

Which set of results to be obtained (1 - 200)

Returns

Promise<Array<List>>

Example Code

<getList>.ofSubCategory(1).then(x => console.log(x));

// OR

<getList>.ofSubCategory(1, 10).then(x => console.log(x));
Number
Number