Ticket #755 (closed Enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

GUIToolkit: disable items in topic_menu()

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.5
Component: DeepaMehta Standard Distribution Version: 4.4
Keywords: Cc: dgf, Malte
Complexity: 2 Area: Application Framework / API
Module: deepamehta-webclient

Description

Certain topics appearing in a menu rendered by dm4c.render.topic_menu() should appear as disabled. To control disabling an indicator function should be passed.

Needed to disable certain types in the association Retype menu (in the course of #592).

Change History

comment:1 Changed 6 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 6 years ago by Jörg Richter <jri@…>

In 3a691090371a5f248b23617caf1699e28c474399/deepamehta:

GUIToolkit: disable items in topic_menu() (#755).

Certain topics appearing in a menu rendered by dm4c.render.topic_menu() can appear as disabled.

BREAKING CHANGE

To control disabling pass an indicator function as the 3rd parameter.

dm4c.render.topic_menu(topic_type_uri, selected_id_or_uri, filter_func, handler)

The handler is now passed as the 4th parameter.

See #755.

comment:3 Changed 6 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.