ItemType QML Type

This value type represents a BrickLink item type. More...

Import Statement: import BrickLink 1.0

Properties

Detailed Description

Each item type in the BrickLink catalog is available as an ItemType object.

You cannot create ItemType objects yourself, but you can retrieve an ItemType object given the id via BrickLink::itemType(). Each Item also has a read-only property Item::itemType.

The currently available item types are

IdName
BBook
CCatalog
GGear
IInstruction
MMinifigure
OOriginal Box
PPart
SSet

Property Documentation

[read-only] categories : list<Category>

A list of Category objects describing all the categories that are referencing at least one item of the given item type.


[read-only] hasColors : bool

Returns true if items under this type can have colors, or false otherwise.


[read-only] hasInventories : bool

Returns true if items under this type can have inventories, or false otherwise.


[read-only] hasSubConditions : bool

Returns true if items under this type can have sub-conditions, or false otherwise.


[read-only] hasWeight : bool

Returns true if items under this type can have weights, or false otherwise.


[read-only] id : int

The BrickLink id of this item type.


[read-only] isNull : bool

Returns whether this ItemType is null. Since this type is a value wrapper around a C++ object, we cannot use the normal JavaScript null notation.


[read-only] name : string

The BrickLink name of this item type.


[read-only] pictureSize : size

The default size and aspect ratio for item pictures of this type.


© 2004-2024 Robert Griebl. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. All trademarks are property of their respective owners.