--- title: conditions slug: Mozilla/Tech/XUL/conditions tags: - Dokumentacja_XUL - Elementy_XUL translation_of: Archive/Mozilla/XUL/conditions ---
« Dokumentacja XUL [ Przykłady | Atrybuty | Własności | Metody | Podobne ]

Ten element powinien zawierać się bezpośrednio wewnątrz elementu rule i jest stosowany do definiowania warunków (conditions) dla reguł. Wewnątrz conditions można umieścić elementy content, member i triple. Mogą one posiadać atrybuty, których wartością jest nazwa zmiennej rozpoczynająca się od znaku zapytania (?). Podczas wykonywania reguły dla konkretnego zasobu RDF, zmienne są zamieniane na wartości ze źródła. Reguła jest dopasowana, jeśli wszystkie zmienne można zamienić.

Dodatkowe informacje są dostępne w kursie XUL.

Przykłady

(potrzebny przykład)

Atrybuty

Dziedziczy z elementu XUL
align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

Własności

Dziedziczy z elementu XUL
align, , allowEvents, , boxObject, builder, , , , className, , , , , collapsed, contextMenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxHeight, maxWidth, menu, minHeight, minWidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statusText, style, ,, tooltip, tooltipText, top, width

Metody

Dziedziczy z elementu XUL
blur, click, doCommand, focus, getElementsByAttribute

Dziedziczy z elementu DOM
addEventListener(), appendChild(), dispatchEvent(), getAttribute(), getAttributeNode(), getAttributeNodeNS(), getAttributeNS(), getElementsByTagName(), getElementsByTagNameNS(), hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isSupported(), normalize(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS()

Podobne

TBD