Skip to content

model.bitmap

since 1.1.0

Get / Set the model bitmap.

local bitmap = model.bitmap([bitmap])

Parameters

Name Type Required Description
bitmap string optional

Returns

bitmap (string)

Real-world usage

Called 6 times across 4 open-source Ethos Lua projects. A few short excerpts:
if model and model.bitmap then
    local bm = model.bitmap()

src/rfsuite/widgets/dashboard/objects/image/model.lua:137

local function getModelBitmapName()
    if not (model and model.bitmap) then return nil end
    local bm = model.bitmap()
    if bm and type(bm) == "string" and bm ~= "" and not string.find(bm, "default_") then
        return bm
    end
    return nil
end

src/wfsuite/widgets/dashboard/objects/image/model.lua:163