reasoncorp / dossier-segmenter Goto Github PK
View Code? Open in Web Editor NEWdossier extension to break reports down by segments (worst description ever)
License: MIT License
dossier extension to break reports down by segments (worst description ever)
License: MIT License
If group_by key for a segment ends with dot(s), splitting with simple split(key_path) in segment_options_for drops trailing null key(s) resulting in error message "ActionView::Template::Error (wrong argument type NilClass (must respond to :each)):"
Simple change to split(key_path,-1) in segment_options_for solves it
I forked it to fix the problem in my project, but please update
Is there any plan or any way to dynamically group by or segment a dossier report?
Maybe something like:
class CuteAnimalsReport < Dossier::Report
class Segmenter < Dossier::Segmenter
segment :group, display_name: -> { @group_option == :family ? 'Family' : 'Domestic' }, group_by: { @group_option == :family ? :family : :domestic }
end
end
Please, post some usage examples!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.