forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */ | ||
|
||
namespace ILIAS\UI\Component\Input\Field; | ||
|
||
/** | ||
* This interface must be implemented by all Inputs that support | ||
* Filter Containers. | ||
* | ||
* These inputs need to implement an additional rendering in the | ||
* FilterContextRenderer and provide an additional method that allows | ||
* the Filter to show the current selected values within the Filter component. | ||
* | ||
* @author [email protected] | ||
*/ | ||
interface FilterInput extends Input { | ||
|
||
/** | ||
* Get update code | ||
* | ||
* This method has to return JS code that calls | ||
* il.UI.filter.handleChange(event, '$id', string_value); | ||
* - initially "onload" and | ||
* - on every input change. | ||
* It must pass a readable string representation of its value in parameter 'string_value'. | ||
* | ||
* @param \Closure $binder | ||
* @return string | ||
*/ | ||
public function getUpdateOnLoadCode(): \Closure; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
/** | ||
* This describes text inputs. | ||
*/ | ||
interface Text extends Input { | ||
interface Text extends FilterInput { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters